scope-profiler 0.7.2__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 (189) hide show
  1. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/CMakeLists.txt +1 -1
  2. {scope_profiler-0.7.2/src/scope_profiler.egg-info → scope_profiler-0.7.4}/PKG-INFO +45 -37
  3. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/README.md +34 -28
  4. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/pyproject.toml +36 -15
  5. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/__init__.py +3 -1
  6. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/__main__.py +250 -28
  7. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +113 -35
  8. scope_profiler-0.7.4/src/scope_profiler/astro_site.py +1844 -0
  9. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/Makefile +2 -2
  10. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/example.c +1 -1
  11. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.h +39 -12
  12. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.hpp +2 -2
  13. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_hdf5.h +7 -7
  14. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_impl.h +322 -5
  15. {scope_profiler-0.7.2 → 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.2 → scope_profiler-0.7.4}/src/scope_profiler/concurrency.py +17 -17
  18. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/diff.py +55 -17
  19. scope_profiler-0.7.4/src/scope_profiler/fortran/scope_profiler.f90 +625 -0
  20. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/gpu_timing.py +8 -0
  21. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/h5reader.py +14 -3
  22. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/h5writer.py +24 -9
  23. scope_profiler-0.7.4/src/scope_profiler/html_report.py +2499 -0
  24. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/inspection.py +2 -1
  25. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/ipython_magics.py +11 -11
  26. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/json_export.py +4 -4
  27. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/likwid_data.py +2 -2
  28. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/server.py +11 -5
  29. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/tools.py +18 -8
  30. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/metadata.py +31 -13
  31. scope_profiler-0.7.4/src/scope_profiler/native_samples.py +282 -0
  32. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/native_trace.py +11 -11
  33. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/_utils.py +19 -7
  34. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/callgraph.py +3 -2
  35. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/duration_timeseries.py +1 -0
  36. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/durations.py +36 -25
  37. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/flame.py +22 -8
  38. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/gantt.py +62 -18
  39. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/heatmap.py +4 -2
  40. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/histogram.py +2 -1
  41. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/imbalance.py +3 -2
  42. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/likwid.py +6 -2
  43. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/perf_events.py +3 -2
  44. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/roofline.py +12 -2
  45. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/scaling.py +7 -6
  46. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/statistics.py +27 -2
  47. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/post_processing.py +17 -8
  48. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/prof_export.py +3 -3
  49. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/profile_config.py +72 -23
  50. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/profile_io.py +2 -2
  51. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/profile_manager.py +242 -51
  52. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/region.py +3 -3
  53. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/region_profiler.py +16 -8
  54. scope_profiler-0.7.4/src/scope_profiler/report_data.py +973 -0
  55. scope_profiler-0.7.4/src/scope_profiler/report_model.py +1275 -0
  56. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/results.py +21 -5
  57. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/speedscope_export.py +1 -1
  58. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/summary.py +161 -61
  59. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/check_mpi_launch.py +1 -1
  60. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/examples_pylikwid.py +1 -1
  61. scope_profiler-0.7.4/src/scope_profiler/tests/report_profiles.py +60 -0
  62. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_app.py +1 -1
  63. scope_profiler-0.7.4/src/scope_profiler/tests/test_astro_site.py +1160 -0
  64. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_async_profiling.py +9 -3
  65. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_c_api.py +4 -4
  66. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_c_hdf5_output.py +6 -6
  67. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_diff.py +1 -1
  68. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_documented_formats.py +1 -1
  69. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_fortran_api.py +406 -2
  70. scope_profiler-0.7.4/src/scope_profiler/tests/test_html_report.py +2668 -0
  71. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_ipython_magics.py +2 -6
  72. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_likwid_data.py +1 -1
  73. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mcp_server.py +1 -1
  74. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mcp_tools.py +41 -2
  75. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_metadata.py +158 -17
  76. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mixed_language.py +1 -1
  77. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mpi.py +9 -1
  78. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_multiprocessing.py +3 -3
  79. scope_profiler-0.7.4/src/scope_profiler/tests/test_native_samples.py +207 -0
  80. scope_profiler-0.7.4/src/scope_profiler/tests/test_opt_in_tags.py +197 -0
  81. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_output_size.py +1 -1
  82. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_overhead.py +4 -4
  83. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_overhead_io.py +20 -6
  84. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_post_processing.py +184 -4
  85. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_prof_export.py +3 -3
  86. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_region_source.py +8 -3
  87. scope_profiler-0.7.4/src/scope_profiler/tests/test_report_model.py +351 -0
  88. scope_profiler-0.7.4/src/scope_profiler/tests/test_report_performance.py +103 -0
  89. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_results_api.py +115 -0
  90. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_set_version.py +1 -1
  91. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_speedscope_export.py +1 -1
  92. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_threading.py +3 -3
  93. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_call_stack_properties.py +1 -1
  94. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_callgraph_plot.py +2 -1
  95. scope_profiler-0.7.4/src/scope_profiler/tests/unit/test_gpu_summary.py +152 -0
  96. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_gpu_timing.py +20 -2
  97. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5_failure_paths.py +3 -3
  98. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5_roundtrip.py +2 -2
  99. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5writer.py +2 -2
  100. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_lazy_config.py +2 -2
  101. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_native_hdf5_inputs.py +4 -4
  102. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_native_trace_versions.py +3 -3
  103. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_payload_collection.py +1 -1
  104. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_region_variants.py +67 -0
  105. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_summary_rendering.py +18 -0
  106. {scope_profiler-0.7.2 → scope_profiler-0.7.4/src/scope_profiler.egg-info}/PKG-INFO +45 -37
  107. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/SOURCES.txt +12 -0
  108. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/requires.txt +11 -8
  109. scope_profiler-0.7.2/src/scope_profiler/fortran/scope_profiler.f90 +0 -362
  110. scope_profiler-0.7.2/src/scope_profiler/html_report.py +0 -1423
  111. scope_profiler-0.7.2/src/scope_profiler/tests/test_html_report.py +0 -835
  112. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/LICENSE.txt +0 -0
  113. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/MANIFEST.in +0 -0
  114. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/cmake/scope-profilerConfig.cmake.in +0 -0
  115. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/CMakeLists.txt +0 -0
  116. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/main.cpp +0 -0
  117. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/mpi.cpp +0 -0
  118. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/native.c +0 -0
  119. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/ex_mpi_numpy_wrappers.py +0 -0
  120. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/ex_mpi_profiling_options.py +0 -0
  121. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/ex_mpi_wrappers.py +0 -0
  122. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/setup.cfg +0 -0
  123. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/_assets/__init__.py +0 -0
  124. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/benchmark.py +0 -0
  125. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.c +0 -0
  126. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_mpi.hpp +0 -0
  127. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/chrome_trace_export.py +0 -0
  128. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/fortran/Makefile +0 -0
  129. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/fortran/example.f90 +0 -0
  130. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/h5schema.py +0 -0
  131. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/line_profile_cli.py +0 -0
  132. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/__init__.py +0 -0
  133. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/__main__.py +0 -0
  134. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/memray.py +0 -0
  135. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mpi_launch.py +0 -0
  136. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mpi_region.py +0 -0
  137. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mpi_wrappers.py +0 -0
  138. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/perf_events.py +0 -0
  139. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/__init__.py +0 -0
  140. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/timeline.py +0 -0
  141. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/py.typed +0 -0
  142. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/pytest_plugin.py +0 -0
  143. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/__init__.py +0 -0
  144. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/check_parallel_hdf5.py +0 -0
  145. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/conftest.py +0 -0
  146. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/examples.py +0 -0
  147. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/README.md +0 -0
  148. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-1.h5.gz.b64 +0 -0
  149. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-2.h5.gz.b64 +0 -0
  150. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-3.h5.gz.b64 +0 -0
  151. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/json-v1.json +0 -0
  152. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/native-v1.spt.b64 +0 -0
  153. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/native-v2.spt.b64 +0 -0
  154. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/pylikwid_readme.py +0 -0
  155. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_aggregation.py +0 -0
  156. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_api_shortcuts.py +0 -0
  157. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_benchmark.py +0 -0
  158. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_buffer_growth.py +0 -0
  159. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_chrome_trace_export.py +0 -0
  160. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_compatibility_fixtures.py +0 -0
  161. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_in_memory_results.py +0 -0
  162. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_inspection.py +0 -0
  163. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_json_export.py +0 -0
  164. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_label.py +0 -0
  165. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_line_profile_cli.py +0 -0
  166. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_main_cli.py +0 -0
  167. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_memray.py +0 -0
  168. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_multiple_sessions.py +0 -0
  169. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_perf_events.py +0 -0
  170. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_profile_config_toml.py +0 -0
  171. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_profiling_options.py +0 -0
  172. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_pytest_plugin.py +0 -0
  173. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_readme.py +0 -0
  174. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_repeated_finalize.py +0 -0
  175. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_storage_size.py +0 -0
  176. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_summary_likwid.py +0 -0
  177. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_tui.py +0 -0
  178. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/__init__.py +0 -0
  179. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_call_stack.py +0 -0
  180. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_concurrency.py +0 -0
  181. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_likwid_child_env.py +0 -0
  182. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_merge_results.py +0 -0
  183. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_mpi_launch.py +0 -0
  184. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_mpi_wrappers.py +0 -0
  185. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_recursive_tracer.py +0 -0
  186. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tui.py +0 -0
  187. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/dependency_links.txt +0 -0
  188. {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/entry_points.txt +0 -0
  189. {scope_profiler-0.7.2 → 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.2 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.2
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,27 +51,27 @@ 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
- Requires-Dist: black[jupyter]; extra == "dev"
62
+ Requires-Dist: black[jupyter]<27,>=26.1; extra == "dev"
60
63
  Requires-Dist: isort>=9.0.0; extra == "dev"
61
64
  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"
@@ -97,6 +99,7 @@ pip install scope-profiler
97
99
  import scope_profiler as sp
98
100
 
99
101
  with sp.session():
102
+
100
103
  @sp.profile("main")
101
104
  def main():
102
105
  with sp.region("work"):
@@ -125,11 +128,13 @@ lifecycle:
125
128
  ```python
126
129
  import scope_profiler as sp
127
130
 
131
+
128
132
  @sp.profile("main")
129
133
  def main():
130
134
  with sp.region("iteration"):
131
135
  work()
132
136
 
137
+
133
138
  main()
134
139
  ```
135
140
 
@@ -146,9 +151,9 @@ creates no output file. Existing `session()`, `setup()`, and
146
151
  direct lifecycle control.
147
152
 
148
153
  See the
149
- [quickstart](https://max-models.github.io/scope-profiler/quickstart.html)
154
+ [quickstart](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
150
155
  and [profiling modes
151
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
156
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
152
157
  recursive tracing, tags, concurrency, output formats, and advanced APIs.
153
158
 
154
159
  ## Profile a pytest suite
@@ -181,14 +186,14 @@ plugin cannot yet be used: its workers must not write the same HDF5
181
186
  file.
182
187
 
183
188
  See the [profiling modes
184
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
189
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
185
190
  output formats, filtering, concurrency, aggregation, pause/resume, and
186
191
  sampling.
187
192
 
188
193
  ## In a notebook
189
194
 
190
195
  Install the notebook extra and see the [notebook magics
191
- guide](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
196
+ guide](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
192
197
  for cell profiling, recursive tracing, comparisons, and exports:
193
198
 
194
199
  ```bash
@@ -197,48 +202,51 @@ pip install "scope-profiler[notebook]"
197
202
 
198
203
  ## Documentation
199
204
 
200
- - [Installation](https://max-models.github.io/scope-profiler/installation.html)
205
+ - [Installation](https://max-models.github.io/scope-profiler/getting-started/installation/)
201
206
  - [Quick
202
- start](https://max-models.github.io/scope-profiler/quickstart.html)
207
+ start](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
203
208
  - [Python API and
204
- post-processing](https://max-models.github.io/scope-profiler/guide/hdf5_and_python_api.html)
205
- - [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/)
206
211
  - [Plotly figures for the
207
- web](https://max-models.github.io/scope-profiler/guide/plotly_package.html)
212
+ web](https://max-models.github.io/scope-profiler/guide/plotly-package/)
208
213
  - [Configuration and profiling
209
- regions](https://max-models.github.io/scope-profiler/guide/configuration.html)
210
- - [MPI](https://max-models.github.io/scope-profiler/guide/mpi.html),
211
- [C](https://max-models.github.io/scope-profiler/guide/c.html), and
212
- [Fortran](https://max-models.github.io/scope-profiler/guide/fortran.html)
213
- - [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/),
214
219
  [line
215
- profiling](https://max-models.github.io/scope-profiler/guide/line_profiler.html),
216
- 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/)
217
222
  - [Jupyter/IPython
218
- magics](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
223
+ magics](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
219
224
  - [Tutorial
220
- notebooks](https://max-models.github.io/scope-profiler/tutorials.html)
225
+ notebooks](https://max-models.github.io/scope-profiler/tutorials/)
221
226
  - [Examples](https://github.com/max-models/scope-profiler/tree/devel/examples)
222
227
 
223
228
  ### Build the documentation locally
224
229
 
225
- The hosted documentation is built with Sphinx from the `.qmd` sources.
226
- Install [Quarto](https://quarto.org/docs/get-started/) and Pandoc first,
227
- then create a development environment and run the docs target from the
228
- 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:
229
235
 
230
236
  ```bash
231
237
  python -m venv .venv
232
238
  source .venv/bin/activate
233
239
  python -m pip install --upgrade pip
234
- pip install -e ".[docs]"
235
- make -C docs html
240
+ make docs-install
241
+ make docs-build
236
242
  ```
237
243
 
238
- This refreshes the generated command output and Markdown sources before
239
- building the HTML site. Open `docs/build/html/index.html` locally, or
240
- serve that directory with any static-file server. The GitHub Pages
241
- 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.
242
250
 
243
251
  ## Development
244
252
 
@@ -16,6 +16,7 @@ pip install scope-profiler
16
16
  import scope_profiler as sp
17
17
 
18
18
  with sp.session():
19
+
19
20
  @sp.profile("main")
20
21
  def main():
21
22
  with sp.region("work"):
@@ -44,11 +45,13 @@ lifecycle:
44
45
  ```python
45
46
  import scope_profiler as sp
46
47
 
48
+
47
49
  @sp.profile("main")
48
50
  def main():
49
51
  with sp.region("iteration"):
50
52
  work()
51
53
 
54
+
52
55
  main()
53
56
  ```
54
57
 
@@ -65,9 +68,9 @@ creates no output file. Existing `session()`, `setup()`, and
65
68
  direct lifecycle control.
66
69
 
67
70
  See the
68
- [quickstart](https://max-models.github.io/scope-profiler/quickstart.html)
71
+ [quickstart](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
69
72
  and [profiling modes
70
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
73
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
71
74
  recursive tracing, tags, concurrency, output formats, and advanced APIs.
72
75
 
73
76
  ## Profile a pytest suite
@@ -100,14 +103,14 @@ plugin cannot yet be used: its workers must not write the same HDF5
100
103
  file.
101
104
 
102
105
  See the [profiling modes
103
- guide](https://max-models.github.io/scope-profiler/guide/modes.html) for
106
+ guide](https://max-models.github.io/scope-profiler/guide/modes/) for
104
107
  output formats, filtering, concurrency, aggregation, pause/resume, and
105
108
  sampling.
106
109
 
107
110
  ## In a notebook
108
111
 
109
112
  Install the notebook extra and see the [notebook magics
110
- guide](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
113
+ guide](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
111
114
  for cell profiling, recursive tracing, comparisons, and exports:
112
115
 
113
116
  ```bash
@@ -116,48 +119,51 @@ pip install "scope-profiler[notebook]"
116
119
 
117
120
  ## Documentation
118
121
 
119
- - [Installation](https://max-models.github.io/scope-profiler/installation.html)
122
+ - [Installation](https://max-models.github.io/scope-profiler/getting-started/installation/)
120
123
  - [Quick
121
- start](https://max-models.github.io/scope-profiler/quickstart.html)
124
+ start](https://max-models.github.io/scope-profiler/getting-started/quickstart/)
122
125
  - [Python API and
123
- post-processing](https://max-models.github.io/scope-profiler/guide/hdf5_and_python_api.html)
124
- - [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/)
125
128
  - [Plotly figures for the
126
- web](https://max-models.github.io/scope-profiler/guide/plotly_package.html)
129
+ web](https://max-models.github.io/scope-profiler/guide/plotly-package/)
127
130
  - [Configuration and profiling
128
- regions](https://max-models.github.io/scope-profiler/guide/configuration.html)
129
- - [MPI](https://max-models.github.io/scope-profiler/guide/mpi.html),
130
- [C](https://max-models.github.io/scope-profiler/guide/c.html), and
131
- [Fortran](https://max-models.github.io/scope-profiler/guide/fortran.html)
132
- - [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/),
133
136
  [line
134
- profiling](https://max-models.github.io/scope-profiler/guide/line_profiler.html),
135
- 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/)
136
139
  - [Jupyter/IPython
137
- magics](https://max-models.github.io/scope-profiler/guide/notebook_magics.html)
140
+ magics](https://max-models.github.io/scope-profiler/guide/notebook-magics/)
138
141
  - [Tutorial
139
- notebooks](https://max-models.github.io/scope-profiler/tutorials.html)
142
+ notebooks](https://max-models.github.io/scope-profiler/tutorials/)
140
143
  - [Examples](https://github.com/max-models/scope-profiler/tree/devel/examples)
141
144
 
142
145
  ### Build the documentation locally
143
146
 
144
- The hosted documentation is built with Sphinx from the `.qmd` sources.
145
- Install [Quarto](https://quarto.org/docs/get-started/) and Pandoc first,
146
- then create a development environment and run the docs target from the
147
- 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:
148
152
 
149
153
  ```bash
150
154
  python -m venv .venv
151
155
  source .venv/bin/activate
152
156
  python -m pip install --upgrade pip
153
- pip install -e ".[docs]"
154
- make -C docs html
157
+ make docs-install
158
+ make docs-build
155
159
  ```
156
160
 
157
- This refreshes the generated command output and Markdown sources before
158
- building the HTML site. Open `docs/build/html/index.html` locally, or
159
- serve that directory with any static-file server. The GitHub Pages
160
- 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.
161
167
 
162
168
  ## Development
163
169
 
@@ -5,7 +5,7 @@ requires = [ "setuptools", "wheel" ]
5
5
 
6
6
  [project]
7
7
  name = "scope-profiler"
8
- version = "0.7.2"
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,11 +92,14 @@ 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
- "black[jupyter]",
99
+ # Black is the one code formatter; ruff only lints (`ruff format` is not
100
+ # used - the two disagree on a handful of constructs). Pinned to a year
101
+ # series: black changes its stable style only in the January release.
102
+ "black[jupyter] >= 26.1, < 27",
95
103
  "isort >= 9.0.0",
96
104
  "mypy >= 1.11.0",
97
105
  # Pinned to a minor series. Ruff's default rule set grows between minor
@@ -101,16 +109,16 @@ optional-dependencies.dev = [
101
109
  "ruff >= 0.16, < 0.17",
102
110
  "scope-profiler[docs,fortran,line-profiler,mcp,mpi,notebook,nvtx,pproc,test,tui]",
103
111
  ]
104
- # 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.
105
114
  optional-dependencies.docs = [
106
- "myst-parser",
107
- "nbconvert",
108
- "nbsphinx",
115
+ "griffe",
116
+ "ipykernel",
117
+ "nbclient",
118
+ "nbformat",
109
119
  "pre-commit",
110
120
  "pyproject-fmt",
111
- "sphinx",
112
- "sphinx-book-theme",
113
- "scope-profiler[line-profiler,mpi,notebook,pproc,tui]",
121
+ "scope-profiler[line-profiler,mpi,notebook,pproc,site,tui]",
114
122
  ]
115
123
  optional-dependencies.test = [
116
124
  # coverage[toml] so the [tool.coverage.*] tables in this file are read on
@@ -134,6 +142,12 @@ scripts.scope-profiler-mcp = "scope_profiler.mcp_server.server:main"
134
142
  [project.entry-points.pytest11]
135
143
  scope_profiler = "scope_profiler.pytest_plugin"
136
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
+
137
151
  [tool.setuptools.packages.find]
138
152
  where = [ "src" ]
139
153
 
@@ -160,6 +174,12 @@ scope_profiler = [
160
174
  [tool.isort]
161
175
  profile = "black"
162
176
 
177
+ [tool.black]
178
+ # Inferred from requires-python, black also targets not-yet-released Pythons
179
+ # and then warns that it cannot verify its output on the running one. The
180
+ # oldest supported version is what decides the formatting anyway.
181
+ target-version = [ "py310" ]
182
+
163
183
  [tool.mypy]
164
184
  # Incremental typing covers the core public result/configuration objects and
165
185
  # the pure helpers they rest on. Optional integrations and older dynamically
@@ -181,7 +201,7 @@ files = [
181
201
  # Resolve imports against the source tree rather than whatever happens to be
182
202
  # installed. Without this, an editable install (a .pth file mypy cannot follow)
183
203
  # silently degrades every intra-package import to Any locally, while CI's
184
- # 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
185
205
  # real. That difference hid 131 errors from local runs.
186
206
  mypy_path = "src"
187
207
  # Run the checker on the lowest CI-supported modern typing environment. The
@@ -246,11 +266,12 @@ exclude_also = [
246
266
  ]
247
267
 
248
268
  [tool.ruff]
269
+ # Linting only: black formats the code. Do not run `ruff format`.
249
270
  src = [ "src" ]
250
271
 
251
272
  [tool.ruff.lint]
252
273
  # Ruff's default rule set grows between releases, so these are the rules this
253
- # 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
254
275
  # pinned ruff version in the dev extra: an unpinned one turns a routine upgrade
255
276
  # into a red build on an untouched commit.
256
277
  ignore = [
@@ -260,7 +281,7 @@ ignore = [
260
281
  # because an optional counter was unavailable.
261
282
  "BLE001",
262
283
  # The same pattern's try/except/pass and try/except/continue forms. There is
263
- # 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
264
285
  # a profiled hot path is worse than the failure it reports.
265
286
  "S110",
266
287
  "S112",
@@ -291,12 +312,12 @@ ignore = [
291
312
  # one `with` keeps the semantics and loses the meaning.
292
313
  "src/scope_profiler/tests/*" = [ "E402", "RUF012", "SIM117" ]
293
314
  # A verbatim copy of pylikwid's README example, kept runnable as a LIKWID
294
- # smoke test. PERF402: the append loop is the measured workload -- rewriting
315
+ # smoke test. PERF402: the append loop is the measured workload - rewriting
295
316
  # it as list(range(...)) profiles nothing.
296
317
  "src/scope_profiler/tests/pylikwid_readme.py" = [ "PERF402" ]
297
318
  # Tutorials, examples and doc generators nest profiling regions for the same
298
319
  # reason the tests do: the indentation shows the region hierarchy.
299
- "tutorials/*" = [ "SIM117" ]
320
+ "notebooks/**" = [ "SIM117" ]
300
321
  "examples/*" = [ "SIM117" ]
301
322
  "docs/*" = [ "SIM117" ]
302
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",