profiling-explorer 1.1.2__tar.gz → 1.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/CHANGELOG.rst +7 -0
  2. {profiling_explorer-1.1.2/src/profiling_explorer.egg-info → profiling_explorer-1.2.0}/PKG-INFO +1 -1
  3. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/pyproject.toml +5 -9
  4. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/templates/callers_callees.html +4 -5
  5. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/views.py +7 -2
  6. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0/src/profiling_explorer.egg-info}/PKG-INFO +1 -1
  7. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/LICENSE +0 -0
  8. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/MANIFEST.in +0 -0
  9. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/README.rst +0 -0
  10. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/setup.cfg +0 -0
  11. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/__init__.py +0 -0
  12. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/__main__.py +0 -0
  13. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/main.py +0 -0
  14. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/management/__init__.py +0 -0
  15. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/management/commands/__init__.py +0 -0
  16. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/management/commands/runserver.py +0 -0
  17. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/py.typed +0 -0
  18. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/settings.py +0 -0
  19. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/static/script.js +0 -0
  20. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/static/styles.css +0 -0
  21. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/templates/_row.html +0 -0
  22. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/templates/base.html +0 -0
  23. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/templates/index.html +0 -0
  24. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/templatetags/__init__.py +0 -0
  25. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/templatetags/profiling_explorer_tags.py +0 -0
  26. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer/urls.py +0 -0
  27. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer.egg-info/SOURCES.txt +0 -0
  28. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer.egg-info/dependency_links.txt +0 -0
  29. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer.egg-info/entry_points.txt +0 -0
  30. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer.egg-info/requires.txt +0 -0
  31. {profiling_explorer-1.1.2 → profiling_explorer-1.2.0}/src/profiling_explorer.egg-info/top_level.txt +0 -0
@@ -2,6 +2,13 @@
2
2
  Changelog
3
3
  =========
4
4
 
5
+ 1.2.0 (2026-05-18)
6
+ ------------------
7
+
8
+ * Enable changing the sort order in callees and callers views.
9
+
10
+ `PR #43 <https://github.com/adamchainz/profiling-explorer/pull/43>`__.
11
+
5
12
  1.1.2 (2026-04-14)
6
13
  ------------------
7
14
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: profiling-explorer
3
- Version: 1.1.2
3
+ Version: 1.2.0
4
4
  Summary: Table-based exploration tool for Python profiling data (pstats files).
5
5
  Author-email: Adam Johnson <me@adamj.eu>
6
6
  License-Expression: MIT
@@ -6,7 +6,7 @@ requires = [
6
6
 
7
7
  [project]
8
8
  name = "profiling-explorer"
9
- version = "1.1.2"
9
+ version = "1.2.0"
10
10
  description = "Table-based exploration tool for Python profiling data (pstats files)."
11
11
  readme = "README.rst"
12
12
  keywords = [
@@ -45,7 +45,7 @@ scripts.profiling-explorer = "profiling_explorer.main:main"
45
45
  test = [
46
46
  "cogapp>=3.6",
47
47
  "coverage[toml]>=7.10",
48
- "pytest",
48
+ "pytest>=9",
49
49
  "pytest-django",
50
50
  "pytest-randomly",
51
51
  ]
@@ -103,13 +103,9 @@ warn_unreachable = true
103
103
  overrides = [ { module = "tests.*", allow_untyped_defs = true } ]
104
104
 
105
105
  [tool.pytest]
106
- ini_options.addopts = """\
107
- --strict-config
108
- --strict-markers
109
- --ds=profiling_explorer.settings
110
- """
111
- ini_options.django_find_project = false
112
- ini_options.xfail_strict = true
106
+ strict = true
107
+ django_find_project = false
108
+ DJANGO_SETTINGS_MODULE = "profiling_explorer.settings"
113
109
 
114
110
  [tool.coverage]
115
111
  run.branch = true
@@ -10,11 +10,10 @@
10
10
  <table>
11
11
  <thead>
12
12
  <tr>
13
- <th>calls
14
- <th>%
15
- <th>internal ms
16
- <th>cumulative ms <pe-sort-indicator>↓</pe-sort-indicator>
17
- <th>%
13
+ {% for col in columns %}
14
+ <th><a href="{% querystring sort=col.next_sort %}">{{ col.label }} <pe-sort-indicator>{{ col.indicator }}</pe-sort-indicator></a>
15
+ {% if col.key == "calls" or col.key == "cumulative_ms" %}<th>%
16
+ {% endif %}{% endfor %}
18
17
  <th class=filename>filename:lineno function
19
18
  <th>
20
19
  </thead>
@@ -216,8 +216,13 @@ def _render_table(
216
216
  else:
217
217
  sorted_rows = sorted(
218
218
  filtered_rows,
219
- key=lambda r: edge_stats[r.id].cumulative_ms,
220
- reverse=True,
219
+ key=lambda r: (
220
+ getattr(edge_stats[r.id], sort_col) or 0,
221
+ r.filename,
222
+ r.lineno,
223
+ r.funcname,
224
+ ),
225
+ reverse=sort_desc,
221
226
  )
222
227
 
223
228
  offset = int(request.GET.get("offset", 0))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: profiling-explorer
3
- Version: 1.1.2
3
+ Version: 1.2.0
4
4
  Summary: Table-based exploration tool for Python profiling data (pstats files).
5
5
  Author-email: Adam Johnson <me@adamj.eu>
6
6
  License-Expression: MIT