scope-profiler 0.7.3__tar.gz → 0.7.4__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 (186) hide show
  1. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/CMakeLists.txt +1 -1
  2. {scope_profiler-0.7.3/src/scope_profiler.egg-info → scope_profiler-0.7.4}/PKG-INFO +41 -36
  3. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/README.md +31 -28
  4. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/pyproject.toml +26 -15
  5. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/__init__.py +3 -1
  6. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/__main__.py +240 -27
  7. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +100 -31
  8. scope_profiler-0.7.4/src/scope_profiler/astro_site.py +1844 -0
  9. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/Makefile +2 -2
  10. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/example.c +1 -1
  11. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.h +38 -11
  12. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.hpp +2 -2
  13. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_hdf5.h +7 -7
  14. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_impl.h +322 -5
  15. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/call_stack.py +9 -9
  16. scope_profiler-0.7.4/src/scope_profiler/catalogue.py +60 -0
  17. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/concurrency.py +17 -17
  18. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/diff.py +15 -12
  19. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/fortran/scope_profiler.f90 +2 -2
  20. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/h5reader.py +3 -3
  21. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/h5writer.py +9 -9
  22. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/html_report.py +858 -1495
  23. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/inspection.py +2 -1
  24. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/ipython_magics.py +11 -11
  25. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/json_export.py +4 -4
  26. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/likwid_data.py +2 -2
  27. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/server.py +11 -5
  28. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/tools.py +18 -8
  29. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/metadata.py +18 -1
  30. scope_profiler-0.7.4/src/scope_profiler/native_samples.py +282 -0
  31. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/native_trace.py +11 -11
  32. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/_utils.py +4 -4
  33. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/durations.py +35 -24
  34. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/gantt.py +48 -14
  35. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/histogram.py +1 -1
  36. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/imbalance.py +1 -1
  37. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/likwid.py +1 -1
  38. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/scaling.py +7 -6
  39. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/statistics.py +27 -2
  40. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/post_processing.py +17 -8
  41. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/prof_export.py +3 -3
  42. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/profile_config.py +29 -7
  43. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/profile_io.py +2 -2
  44. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/profile_manager.py +140 -40
  45. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/region.py +3 -3
  46. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/region_profiler.py +8 -8
  47. scope_profiler-0.7.4/src/scope_profiler/report_data.py +973 -0
  48. scope_profiler-0.7.4/src/scope_profiler/report_model.py +1275 -0
  49. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/results.py +21 -5
  50. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/speedscope_export.py +1 -1
  51. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/summary.py +26 -6
  52. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/check_mpi_launch.py +1 -1
  53. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/examples_pylikwid.py +1 -1
  54. scope_profiler-0.7.4/src/scope_profiler/tests/report_profiles.py +60 -0
  55. scope_profiler-0.7.4/src/scope_profiler/tests/test_astro_site.py +1160 -0
  56. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_c_api.py +3 -3
  57. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_c_hdf5_output.py +6 -6
  58. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_diff.py +1 -1
  59. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_documented_formats.py +1 -1
  60. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_html_report.py +609 -64
  61. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_ipython_magics.py +1 -1
  62. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_likwid_data.py +1 -1
  63. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mcp_server.py +1 -1
  64. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mcp_tools.py +41 -2
  65. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_metadata.py +82 -1
  66. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mixed_language.py +1 -1
  67. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mpi.py +9 -1
  68. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_multiprocessing.py +3 -3
  69. scope_profiler-0.7.4/src/scope_profiler/tests/test_native_samples.py +207 -0
  70. scope_profiler-0.7.4/src/scope_profiler/tests/test_opt_in_tags.py +197 -0
  71. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_output_size.py +1 -1
  72. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_overhead.py +4 -4
  73. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_overhead_io.py +20 -6
  74. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_post_processing.py +124 -4
  75. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_prof_export.py +3 -3
  76. scope_profiler-0.7.4/src/scope_profiler/tests/test_report_model.py +351 -0
  77. scope_profiler-0.7.4/src/scope_profiler/tests/test_report_performance.py +103 -0
  78. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_results_api.py +115 -0
  79. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_set_version.py +1 -1
  80. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_speedscope_export.py +1 -1
  81. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_threading.py +3 -3
  82. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_call_stack_properties.py +1 -1
  83. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_gpu_timing.py +2 -2
  84. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5_failure_paths.py +3 -3
  85. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5_roundtrip.py +2 -2
  86. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5writer.py +2 -2
  87. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_lazy_config.py +2 -2
  88. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_native_hdf5_inputs.py +4 -4
  89. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_payload_collection.py +1 -1
  90. {scope_profiler-0.7.3 → scope_profiler-0.7.4/src/scope_profiler.egg-info}/PKG-INFO +41 -36
  91. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/SOURCES.txt +11 -0
  92. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/requires.txt +10 -7
  93. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/LICENSE.txt +0 -0
  94. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/MANIFEST.in +0 -0
  95. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/cmake/scope-profilerConfig.cmake.in +0 -0
  96. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/examples/cmake/CMakeLists.txt +0 -0
  97. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/examples/cmake/main.cpp +0 -0
  98. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/examples/cmake/mpi.cpp +0 -0
  99. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/examples/cmake/native.c +0 -0
  100. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/examples/ex_mpi_numpy_wrappers.py +0 -0
  101. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/examples/ex_mpi_profiling_options.py +0 -0
  102. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/examples/ex_mpi_wrappers.py +0 -0
  103. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/setup.cfg +0 -0
  104. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/_assets/__init__.py +0 -0
  105. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/benchmark.py +0 -0
  106. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.c +0 -0
  107. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_mpi.hpp +0 -0
  108. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/chrome_trace_export.py +0 -0
  109. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/fortran/Makefile +0 -0
  110. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/fortran/example.f90 +0 -0
  111. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/gpu_timing.py +0 -0
  112. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/h5schema.py +0 -0
  113. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/line_profile_cli.py +0 -0
  114. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/__init__.py +0 -0
  115. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/__main__.py +0 -0
  116. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/memray.py +0 -0
  117. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/mpi_launch.py +0 -0
  118. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/mpi_region.py +0 -0
  119. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/mpi_wrappers.py +0 -0
  120. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/perf_events.py +0 -0
  121. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/__init__.py +0 -0
  122. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/callgraph.py +0 -0
  123. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/duration_timeseries.py +0 -0
  124. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/flame.py +0 -0
  125. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/heatmap.py +0 -0
  126. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/perf_events.py +0 -0
  127. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/roofline.py +0 -0
  128. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/timeline.py +0 -0
  129. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/py.typed +0 -0
  130. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/pytest_plugin.py +0 -0
  131. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/__init__.py +0 -0
  132. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/check_parallel_hdf5.py +0 -0
  133. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/conftest.py +0 -0
  134. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/examples.py +0 -0
  135. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/README.md +0 -0
  136. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-1.h5.gz.b64 +0 -0
  137. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-2.h5.gz.b64 +0 -0
  138. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-3.h5.gz.b64 +0 -0
  139. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/json-v1.json +0 -0
  140. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/native-v1.spt.b64 +0 -0
  141. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/native-v2.spt.b64 +0 -0
  142. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/pylikwid_readme.py +0 -0
  143. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_aggregation.py +0 -0
  144. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_api_shortcuts.py +0 -0
  145. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_app.py +0 -0
  146. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_async_profiling.py +0 -0
  147. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_benchmark.py +0 -0
  148. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_buffer_growth.py +0 -0
  149. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_chrome_trace_export.py +0 -0
  150. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_compatibility_fixtures.py +0 -0
  151. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_fortran_api.py +0 -0
  152. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_in_memory_results.py +0 -0
  153. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_inspection.py +0 -0
  154. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_json_export.py +0 -0
  155. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_label.py +0 -0
  156. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_line_profile_cli.py +0 -0
  157. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_main_cli.py +0 -0
  158. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_memray.py +0 -0
  159. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_multiple_sessions.py +0 -0
  160. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_perf_events.py +0 -0
  161. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_profile_config_toml.py +0 -0
  162. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_profiling_options.py +0 -0
  163. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_pytest_plugin.py +0 -0
  164. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_readme.py +0 -0
  165. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_region_source.py +0 -0
  166. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_repeated_finalize.py +0 -0
  167. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_storage_size.py +0 -0
  168. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_summary_likwid.py +0 -0
  169. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_tui.py +0 -0
  170. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/__init__.py +0 -0
  171. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_call_stack.py +0 -0
  172. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_callgraph_plot.py +0 -0
  173. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_concurrency.py +0 -0
  174. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_gpu_summary.py +0 -0
  175. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_likwid_child_env.py +0 -0
  176. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_merge_results.py +0 -0
  177. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_mpi_launch.py +0 -0
  178. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_mpi_wrappers.py +0 -0
  179. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_native_trace_versions.py +0 -0
  180. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_recursive_tracer.py +0 -0
  181. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_region_variants.py +0 -0
  182. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_summary_rendering.py +0 -0
  183. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler/tui.py +0 -0
  184. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/dependency_links.txt +0 -0
  185. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/entry_points.txt +0 -0
  186. {scope_profiler-0.7.3 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  cmake_minimum_required(VERSION 3.15)
2
2
 
3
- project(scope-profiler VERSION 0.7.3 LANGUAGES C CXX)
3
+ project(scope-profiler VERSION 0.7.4 LANGUAGES C CXX)
4
4
 
5
5
  include(GNUInstallDirs)
6
6
  include(CMakePackageConfigHelpers)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scope-profiler
3
- Version: 0.7.3
3
+ Version: 0.7.4
4
4
  Summary: Profile code regions in python, optionally with LIKWID markers.
5
5
  Author: Max
6
6
  License-Expression: MIT
@@ -39,6 +39,8 @@ Provides-Extra: mpi
39
39
  Requires-Dist: mpi4py; extra == "mpi"
40
40
  Provides-Extra: notebook
41
41
  Requires-Dist: ipython; extra == "notebook"
42
+ Provides-Extra: site
43
+ Requires-Dist: pyyaml; extra == "site"
42
44
  Provides-Extra: pproc
43
45
  Requires-Dist: flameprof; extra == "pproc"
44
46
  Requires-Dist: ipykernel; extra == "pproc"
@@ -49,12 +51,13 @@ Requires-Dist: pandas; extra == "pproc"
49
51
  Requires-Dist: plotly; extra == "pproc"
50
52
  Requires-Dist: pyarrow; extra == "pproc"
51
53
  Requires-Dist: pyvis>=0.3.2; extra == "pproc"
54
+ Requires-Dist: pyyaml; extra == "pproc"
52
55
  Requires-Dist: snakeviz; extra == "pproc"
53
56
  Requires-Dist: tabulate; extra == "pproc"
54
57
  Requires-Dist: textual>=0.86; extra == "pproc"
55
58
  Provides-Extra: extras
56
59
  Requires-Dist: memray; extra == "extras"
57
- Requires-Dist: scope-profiler[compression,fortran,line-profiler,mcp,mpi,notebook,nvtx,perf-events,pproc,tui]; extra == "extras"
60
+ Requires-Dist: scope-profiler[compression,fortran,line-profiler,mcp,mpi,notebook,nvtx,perf-events,pproc,site,tui]; extra == "extras"
58
61
  Provides-Extra: dev
59
62
  Requires-Dist: black[jupyter]<27,>=26.1; extra == "dev"
60
63
  Requires-Dist: isort>=9.0.0; extra == "dev"
@@ -62,14 +65,13 @@ Requires-Dist: mypy>=1.11.0; extra == "dev"
62
65
  Requires-Dist: ruff<0.17,>=0.16; extra == "dev"
63
66
  Requires-Dist: scope-profiler[docs,fortran,line-profiler,mcp,mpi,notebook,nvtx,pproc,test,tui]; extra == "dev"
64
67
  Provides-Extra: docs
65
- Requires-Dist: myst-parser; extra == "docs"
66
- Requires-Dist: nbconvert; extra == "docs"
67
- Requires-Dist: nbsphinx; extra == "docs"
68
+ Requires-Dist: griffe; extra == "docs"
69
+ Requires-Dist: ipykernel; extra == "docs"
70
+ Requires-Dist: nbclient; extra == "docs"
71
+ Requires-Dist: nbformat; extra == "docs"
68
72
  Requires-Dist: pre-commit; extra == "docs"
69
73
  Requires-Dist: pyproject-fmt; extra == "docs"
70
- Requires-Dist: sphinx; extra == "docs"
71
- Requires-Dist: sphinx-book-theme; extra == "docs"
72
- Requires-Dist: scope-profiler[line-profiler,mpi,notebook,pproc,tui]; extra == "docs"
74
+ Requires-Dist: scope-profiler[line-profiler,mpi,notebook,pproc,site,tui]; extra == "docs"
73
75
  Provides-Extra: test
74
76
  Requires-Dist: coverage[toml]; extra == "test"
75
77
  Requires-Dist: hypothesis; extra == "test"
@@ -149,9 +151,9 @@ creates no output file. Existing `session()`, `setup()`, and
149
151
  direct lifecycle control.
150
152
 
151
153
  See the
152
- [quickstart](https://max-models.github.io/scope-profiler/quickstart.html)
154
+ [quickstart](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
153
155
  and [profiling modes
154
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
156
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
155
157
  recursive tracing, tags, concurrency, output formats, and advanced APIs.
156
158
 
157
159
  ## Profile a pytest suite
@@ -184,14 +186,14 @@ plugin cannot yet be used: its workers must not write the same HDF5
184
186
  file.
185
187
 
186
188
  See the [profiling modes
187
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
189
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
188
190
  output formats, filtering, concurrency, aggregation, pause/resume, and
189
191
  sampling.
190
192
 
191
193
  ## In a notebook
192
194
 
193
195
  Install the notebook extra and see the [notebook magics
194
- guide](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
196
+ guide](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
195
197
  for cell profiling, recursive tracing, comparisons, and exports:
196
198
 
197
199
  ```bash
@@ -200,48 +202,51 @@ pip install "scope-profiler[notebook]"
200
202
 
201
203
  ## Documentation
202
204
 
203
- - [Installation](https://max-models.github.io/scope-profiler/installation.html)
205
+ - [Installation](https://max-models.github.io/scope-profiler/getting-started/installation/)
204
206
  - [Quick
205
- start](https://max-models.github.io/scope-profiler/quickstart.html)
207
+ start](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
206
208
  - [Python API and
207
- post-processing](https://max-models.github.io/scope-profiler/guide/hdf5_and_python_api.html)
208
- - [CLI reference](https://max-models.github.io/scope-profiler/cli.html)
209
+ post-processing](https://max-models.github.io/scope-profiler/guide/hdf5-and-python-api/)
210
+ - [CLI reference](https://max-models.github.io/scope-profiler/reference/cli/)
209
211
  - [Plotly figures for the
210
- web](https://max-models.github.io/scope-profiler/guide/plotly_package.html)
212
+ web](https://max-models.github.io/scope-profiler/guide/plotly-package/)
211
213
  - [Configuration and profiling
212
- regions](https://max-models.github.io/scope-profiler/guide/configuration.html)
213
- - [MPI](https://max-models.github.io/scope-profiler/guide/mpi.html),
214
- [C](https://max-models.github.io/scope-profiler/guide/c.html), and
215
- [Fortran](https://max-models.github.io/scope-profiler/guide/fortran.html)
216
- - [LIKWID](https://max-models.github.io/scope-profiler/guide/likwid.html),
214
+ regions](https://max-models.github.io/scope-profiler/guide/configuration/)
215
+ - [MPI](https://max-models.github.io/scope-profiler/guide/mpi/),
216
+ [C](https://max-models.github.io/scope-profiler/guide/c/), and
217
+ [Fortran](https://max-models.github.io/scope-profiler/guide/fortran/)
218
+ - [LIKWID](https://max-models.github.io/scope-profiler/guide/likwid/),
217
219
  [line
218
- profiling](https://max-models.github.io/scope-profiler/guide/line_profiler.html),
219
- and [MCP](https://max-models.github.io/scope-profiler/guide/mcp.html)
220
+ profiling](https://max-models.github.io/scope-profiler/guide/line-profiler/),
221
+ and [MCP](https://max-models.github.io/scope-profiler/guide/mcp/)
220
222
  - [Jupyter/IPython
221
- magics](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
223
+ magics](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
222
224
  - [Tutorial
223
- notebooks](https://max-models.github.io/scope-profiler/tutorials.html)
225
+ notebooks](https://max-models.github.io/scope-profiler/tutorials/)
224
226
  - [Examples](https://github.com/max-models/scope-profiler/tree/devel/examples)
225
227
 
226
228
  ### Build the documentation locally
227
229
 
228
- The hosted documentation is built with Sphinx from the `.qmd` sources.
229
- Install [Quarto](https://quarto.org/docs/get-started/) and Pandoc first,
230
- then create a development environment and run the docs target from the
231
- repository root:
230
+ The hosted documentation is an [Astro](https://astro.build/) +
231
+ [Starlight](https://starlight.astro.build/) site in `docs/`, set up with
232
+ the shared [starlight-theme](https://github.com/max-models/starlight-theme).
233
+ It needs Node 22 or newer, an MPI implementation (`mpirun`) for the MPI
234
+ examples, and the `docs` extra:
232
235
 
233
236
  ```bash
234
237
  python -m venv .venv
235
238
  source .venv/bin/activate
236
239
  python -m pip install --upgrade pip
237
- pip install -e ".[docs]"
238
- make -C docs html
240
+ make docs-install
241
+ make docs-build
239
242
  ```
240
243
 
241
- This refreshes the generated command output and Markdown sources before
242
- building the HTML site. Open `docs/build/html/index.html` locally, or
243
- serve that directory with any static-file server. The GitHub Pages
244
- workflow uses the same `make -C docs html` command.
244
+ This executes the tutorial notebooks, refreshes the generated command
245
+ output and builds the site into `docs/dist`; `make docs-dev` serves a live
246
+ preview at <http://localhost:4321/scope-profiler/>. The GitHub Pages
247
+ workflow runs the same steps. See the [docs page on building the
248
+ docs](https://max-models.github.io/scope-profiler/development/docs/) for
249
+ the details.
245
250
 
246
251
  ## Development
247
252
 
@@ -68,9 +68,9 @@ creates no output file. Existing `session()`, `setup()`, and
68
68
  direct lifecycle control.
69
69
 
70
70
  See the
71
- [quickstart](https://max-models.github.io/scope-profiler/quickstart.html)
71
+ [quickstart](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
72
72
  and [profiling modes
73
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
73
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
74
74
  recursive tracing, tags, concurrency, output formats, and advanced APIs.
75
75
 
76
76
  ## Profile a pytest suite
@@ -103,14 +103,14 @@ plugin cannot yet be used: its workers must not write the same HDF5
103
103
  file.
104
104
 
105
105
  See the [profiling modes
106
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
106
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
107
107
  output formats, filtering, concurrency, aggregation, pause/resume, and
108
108
  sampling.
109
109
 
110
110
  ## In a notebook
111
111
 
112
112
  Install the notebook extra and see the [notebook magics
113
- guide](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
113
+ guide](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
114
114
  for cell profiling, recursive tracing, comparisons, and exports:
115
115
 
116
116
  ```bash
@@ -119,48 +119,51 @@ pip install "scope-profiler[notebook]"
119
119
 
120
120
  ## Documentation
121
121
 
122
- - [Installation](https://max-models.github.io/scope-profiler/installation.html)
122
+ - [Installation](https://max-models.github.io/scope-profiler/getting-started/installation/)
123
123
  - [Quick
124
- start](https://max-models.github.io/scope-profiler/quickstart.html)
124
+ start](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
125
125
  - [Python API and
126
- post-processing](https://max-models.github.io/scope-profiler/guide/hdf5_and_python_api.html)
127
- - [CLI reference](https://max-models.github.io/scope-profiler/cli.html)
126
+ post-processing](https://max-models.github.io/scope-profiler/guide/hdf5-and-python-api/)
127
+ - [CLI reference](https://max-models.github.io/scope-profiler/reference/cli/)
128
128
  - [Plotly figures for the
129
- web](https://max-models.github.io/scope-profiler/guide/plotly_package.html)
129
+ web](https://max-models.github.io/scope-profiler/guide/plotly-package/)
130
130
  - [Configuration and profiling
131
- regions](https://max-models.github.io/scope-profiler/guide/configuration.html)
132
- - [MPI](https://max-models.github.io/scope-profiler/guide/mpi.html),
133
- [C](https://max-models.github.io/scope-profiler/guide/c.html), and
134
- [Fortran](https://max-models.github.io/scope-profiler/guide/fortran.html)
135
- - [LIKWID](https://max-models.github.io/scope-profiler/guide/likwid.html),
131
+ regions](https://max-models.github.io/scope-profiler/guide/configuration/)
132
+ - [MPI](https://max-models.github.io/scope-profiler/guide/mpi/),
133
+ [C](https://max-models.github.io/scope-profiler/guide/c/), and
134
+ [Fortran](https://max-models.github.io/scope-profiler/guide/fortran/)
135
+ - [LIKWID](https://max-models.github.io/scope-profiler/guide/likwid/),
136
136
  [line
137
- profiling](https://max-models.github.io/scope-profiler/guide/line_profiler.html),
138
- and [MCP](https://max-models.github.io/scope-profiler/guide/mcp.html)
137
+ profiling](https://max-models.github.io/scope-profiler/guide/line-profiler/),
138
+ and [MCP](https://max-models.github.io/scope-profiler/guide/mcp/)
139
139
  - [Jupyter/IPython
140
- magics](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
140
+ magics](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
141
141
  - [Tutorial
142
- notebooks](https://max-models.github.io/scope-profiler/tutorials.html)
142
+ notebooks](https://max-models.github.io/scope-profiler/tutorials/)
143
143
  - [Examples](https://github.com/max-models/scope-profiler/tree/devel/examples)
144
144
 
145
145
  ### Build the documentation locally
146
146
 
147
- The hosted documentation is built with Sphinx from the `.qmd` sources.
148
- Install [Quarto](https://quarto.org/docs/get-started/) and Pandoc first,
149
- then create a development environment and run the docs target from the
150
- repository root:
147
+ The hosted documentation is an [Astro](https://astro.build/) +
148
+ [Starlight](https://starlight.astro.build/) site in `docs/`, set up with
149
+ the shared [starlight-theme](https://github.com/max-models/starlight-theme).
150
+ It needs Node 22 or newer, an MPI implementation (`mpirun`) for the MPI
151
+ examples, and the `docs` extra:
151
152
 
152
153
  ```bash
153
154
  python -m venv .venv
154
155
  source .venv/bin/activate
155
156
  python -m pip install --upgrade pip
156
- pip install -e ".[docs]"
157
- make -C docs html
157
+ make docs-install
158
+ make docs-build
158
159
  ```
159
160
 
160
- This refreshes the generated command output and Markdown sources before
161
- building the HTML site. Open `docs/build/html/index.html` locally, or
162
- serve that directory with any static-file server. The GitHub Pages
163
- workflow uses the same `make -C docs html` command.
161
+ This executes the tutorial notebooks, refreshes the generated command
162
+ output and builds the site into `docs/dist`; `make docs-dev` serves a live
163
+ preview at <http://localhost:4321/scope-profiler/>. The GitHub Pages
164
+ workflow runs the same steps. See the [docs page on building the
165
+ docs](https://max-models.github.io/scope-profiler/development/docs/) for
166
+ the details.
164
167
 
165
168
  ## Development
166
169
 
@@ -5,7 +5,7 @@ requires = [ "setuptools", "wheel" ]
5
5
 
6
6
  [project]
7
7
  name = "scope-profiler"
8
- version = "0.7.3"
8
+ version = "0.7.4"
9
9
  description = "Profile code regions in python, optionally with LIKWID markers."
10
10
  readme = "README.md"
11
11
  keywords = [ "python" ]
@@ -68,6 +68,10 @@ optional-dependencies.notebook = [
68
68
  "ipython",
69
69
  ]
70
70
 
71
+ optional-dependencies.site = [
72
+ "pyyaml",
73
+ ]
74
+
71
75
  optional-dependencies.pproc = [
72
76
  "flameprof",
73
77
  "ipykernel",
@@ -78,6 +82,7 @@ optional-dependencies.pproc = [
78
82
  "plotly",
79
83
  "pyarrow",
80
84
  "pyvis >= 0.3.2",
85
+ "pyyaml",
81
86
  "snakeviz",
82
87
  "tabulate",
83
88
  "textual>=0.86",
@@ -87,12 +92,12 @@ optional-dependencies.pproc = [
87
92
  # stays opt-in because it requires a compatible system-level installation.
88
93
  optional-dependencies.extras = [
89
94
  "memray",
90
- "scope-profiler[compression,fortran,line-profiler,mcp,mpi,notebook,nvtx,perf-events,pproc,tui]",
95
+ "scope-profiler[compression,fortran,line-profiler,mcp,mpi,notebook,nvtx,perf-events,pproc,site,tui]",
91
96
  ]
92
97
 
93
98
  optional-dependencies.dev = [
94
99
  # Black is the one code formatter; ruff only lints (`ruff format` is not
95
- # used -- the two disagree on a handful of constructs). Pinned to a year
100
+ # used - the two disagree on a handful of constructs). Pinned to a year
96
101
  # series: black changes its stable style only in the January release.
97
102
  "black[jupyter] >= 26.1, < 27",
98
103
  "isort >= 9.0.0",
@@ -104,16 +109,16 @@ optional-dependencies.dev = [
104
109
  "ruff >= 0.16, < 0.17",
105
110
  "scope-profiler[docs,fortran,line-profiler,mcp,mpi,notebook,nvtx,pproc,test,tui]",
106
111
  ]
107
- # https://medium.com/@pratikdomadiya123/build-project-documentation-quickly-with-the-sphinx-python-2a9732b66594
112
+ # The docs site (docs/, @max-models/starlight-theme): griffe reads the API reference, and
113
+ # nbclient/nbformat/ipykernel run the tutorials, which use the extras below.
108
114
  optional-dependencies.docs = [
109
- "myst-parser",
110
- "nbconvert",
111
- "nbsphinx",
115
+ "griffe",
116
+ "ipykernel",
117
+ "nbclient",
118
+ "nbformat",
112
119
  "pre-commit",
113
120
  "pyproject-fmt",
114
- "sphinx",
115
- "sphinx-book-theme",
116
- "scope-profiler[line-profiler,mpi,notebook,pproc,tui]",
121
+ "scope-profiler[line-profiler,mpi,notebook,pproc,site,tui]",
117
122
  ]
118
123
  optional-dependencies.test = [
119
124
  # coverage[toml] so the [tool.coverage.*] tables in this file are read on
@@ -137,6 +142,12 @@ scripts.scope-profiler-mcp = "scope_profiler.mcp_server.server:main"
137
142
  [project.entry-points.pytest11]
138
143
  scope_profiler = "scope_profiler.pytest_plugin"
139
144
 
145
+ # pylikwid is an sdist whose build needs a LIKWID installation; `uv sync` resolves every extra,
146
+ # so it gets the metadata from here instead of building pylikwid (the docs CI has no LIKWID)
147
+ [[tool.uv.dependency-metadata]]
148
+ name = "pylikwid"
149
+ requires-dist = []
150
+
140
151
  [tool.setuptools.packages.find]
141
152
  where = [ "src" ]
142
153
 
@@ -190,7 +201,7 @@ files = [
190
201
  # Resolve imports against the source tree rather than whatever happens to be
191
202
  # installed. Without this, an editable install (a .pth file mypy cannot follow)
192
203
  # silently degrades every intra-package import to Any locally, while CI's
193
- # regular install -- which now carries a py.typed marker -- checks them for
204
+ # regular install - which now carries a py.typed marker - checks them for
194
205
  # real. That difference hid 131 errors from local runs.
195
206
  mypy_path = "src"
196
207
  # Run the checker on the lowest CI-supported modern typing environment. The
@@ -260,7 +271,7 @@ src = [ "src" ]
260
271
 
261
272
  [tool.ruff.lint]
262
273
  # Ruff's default rule set grows between releases, so these are the rules this
263
- # project has looked at and deliberately declined -- not a backlog. See the
274
+ # project has looked at and deliberately declined - not a backlog. See the
264
275
  # pinned ruff version in the dev extra: an unpinned one turns a routine upgrade
265
276
  # into a red build on an untouched commit.
266
277
  ignore = [
@@ -270,7 +281,7 @@ ignore = [
270
281
  # because an optional counter was unavailable.
271
282
  "BLE001",
272
283
  # The same pattern's try/except/pass and try/except/continue forms. There is
273
- # nowhere to log to -- the library has no logger and writing to stderr from
284
+ # nowhere to log to - the library has no logger and writing to stderr from
274
285
  # a profiled hot path is worse than the failure it reports.
275
286
  "S110",
276
287
  "S112",
@@ -301,12 +312,12 @@ ignore = [
301
312
  # one `with` keeps the semantics and loses the meaning.
302
313
  "src/scope_profiler/tests/*" = [ "E402", "RUF012", "SIM117" ]
303
314
  # A verbatim copy of pylikwid's README example, kept runnable as a LIKWID
304
- # smoke test. PERF402: the append loop is the measured workload -- rewriting
315
+ # smoke test. PERF402: the append loop is the measured workload - rewriting
305
316
  # it as list(range(...)) profiles nothing.
306
317
  "src/scope_profiler/tests/pylikwid_readme.py" = [ "PERF402" ]
307
318
  # Tutorials, examples and doc generators nest profiling regions for the same
308
319
  # reason the tests do: the indentation shows the region hierarchy.
309
- "tutorials/*" = [ "SIM117" ]
320
+ "notebooks/**" = [ "SIM117" ]
310
321
  "examples/*" = [ "SIM117" ]
311
322
  "docs/*" = [ "SIM117" ]
312
323
  # PYI034: ProfilingWriter.__enter__ returns the concrete class rather than
@@ -62,7 +62,7 @@ from scope_profiler.results import ProfilingResults, merge_results
62
62
  #: solve()
63
63
  #:
64
64
  #: These are the ``ProfileManager`` class methods themselves rather than
65
- #: forwarding wrappers -- ``region()`` runs on the per-event path, and an
65
+ #: forwarding wrappers - ``region()`` runs on the per-event path, and an
66
66
  #: extra frame there is measurable overhead. They act on the same global
67
67
  #: manager state the class methods do.
68
68
  finalize = ProfileManager.finalize
@@ -78,6 +78,7 @@ profile = ProfileManager.profile
78
78
  region_factory = ProfileManager.region_factory
79
79
  recorded_regions = ProfileManager.recorded_regions
80
80
  region = ProfileManager.region
81
+ register_opt_in_tag = ProfileManager.register_opt_in_tag
81
82
  registered_regions = ProfileManager.registered_regions
82
83
  session = ProfileManager.session
83
84
  setup = ProfileManager.setup
@@ -197,6 +198,7 @@ __all__ = [
197
198
  "recorded_regions",
198
199
  "region",
199
200
  "region_factory",
201
+ "register_opt_in_tag",
200
202
  "registered_regions",
201
203
  "run",
202
204
  "session",