profiling-explorer 1.1.0__tar.gz → 1.1.2__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.0 → profiling_explorer-1.1.2}/CHANGELOG.rst +14 -0
  2. {profiling_explorer-1.1.0/src/profiling_explorer.egg-info → profiling_explorer-1.1.2}/PKG-INFO +1 -1
  3. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/pyproject.toml +1 -1
  4. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/views.py +7 -5
  5. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2/src/profiling_explorer.egg-info}/PKG-INFO +1 -1
  6. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/LICENSE +0 -0
  7. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/MANIFEST.in +0 -0
  8. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/README.rst +0 -0
  9. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/setup.cfg +0 -0
  10. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/__init__.py +0 -0
  11. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/__main__.py +0 -0
  12. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/main.py +0 -0
  13. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/management/__init__.py +0 -0
  14. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/management/commands/__init__.py +0 -0
  15. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/management/commands/runserver.py +0 -0
  16. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/py.typed +0 -0
  17. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/settings.py +0 -0
  18. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/static/script.js +0 -0
  19. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/static/styles.css +0 -0
  20. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/templates/_row.html +0 -0
  21. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/templates/base.html +0 -0
  22. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/templates/callers_callees.html +0 -0
  23. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/templates/index.html +0 -0
  24. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/templatetags/__init__.py +0 -0
  25. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/templatetags/profiling_explorer_tags.py +0 -0
  26. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer/urls.py +0 -0
  27. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer.egg-info/SOURCES.txt +0 -0
  28. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer.egg-info/dependency_links.txt +0 -0
  29. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer.egg-info/entry_points.txt +0 -0
  30. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer.egg-info/requires.txt +0 -0
  31. {profiling_explorer-1.1.0 → profiling_explorer-1.1.2}/src/profiling_explorer.egg-info/top_level.txt +0 -0
@@ -2,6 +2,20 @@
2
2
  Changelog
3
3
  =========
4
4
 
5
+ 1.1.2 (2026-04-14)
6
+ ------------------
7
+
8
+ * Fix caller percentage calculation.
9
+
10
+ `PR #37 <https://github.com/adamchainz/profiling-explorer/pull/37>`__.
11
+
12
+ 1.1.1 (2026-04-13)
13
+ ------------------
14
+
15
+ * Fix filename simplification.
16
+
17
+ `PR #36 <https://github.com/adamchainz/profiling-explorer/pull/36>`__.
18
+
5
19
  1.1.0 (2026-04-13)
6
20
  ------------------
7
21
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: profiling-explorer
3
- Version: 1.1.0
3
+ Version: 1.1.2
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.0"
9
+ version = "1.1.2"
10
10
  description = "Table-based exploration tool for Python profiling data (pstats files)."
11
11
  readme = "README.rst"
12
12
  keywords = [
@@ -73,10 +73,12 @@ def _shorten_filename_function(filename: str, funcname: str) -> tuple[str, str,
73
73
  else:
74
74
  if filename == "":
75
75
  short_filename = ""
76
- match = _STRIP_PREFIX_RE.match(filename)
77
- if match:
78
- short_filename = filename[match.end() :]
79
- short_filename = os.path.relpath(filename)
76
+ else:
77
+ match = _STRIP_PREFIX_RE.match(filename)
78
+ if match:
79
+ short_filename = filename[match.end() :]
80
+ else:
81
+ short_filename = os.path.relpath(filename)
80
82
  full_filename = filename
81
83
  return full_filename, short_filename, funcname
82
84
 
@@ -144,7 +146,7 @@ def build_profile(s: pstats.Stats, path: str) -> Profile:
144
146
  internal_ms=None,
145
147
  cumulative_ms=callee_cumulative_ms,
146
148
  cumulative_ms_pct=(
147
- min(100.0, cumulative_ms / total_time_ms * 100)
149
+ min(100.0, callee_cumulative_ms / total_time_ms * 100)
148
150
  if total_time_ms
149
151
  else 0.0
150
152
  ),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: profiling-explorer
3
- Version: 1.1.0
3
+ Version: 1.1.2
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