scope-profiler 0.7.2__tar.gz → 0.7.3__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 (178) hide show
  1. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/CMakeLists.txt +1 -1
  2. {scope_profiler-0.7.2/src/scope_profiler.egg-info → scope_profiler-0.7.3}/PKG-INFO +5 -2
  3. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/README.md +3 -0
  4. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/pyproject.toml +12 -2
  5. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/__main__.py +11 -2
  6. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +13 -4
  7. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/scope_profiler.h +1 -1
  8. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/diff.py +41 -6
  9. scope_profiler-0.7.3/src/scope_profiler/fortran/scope_profiler.f90 +625 -0
  10. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/gpu_timing.py +8 -0
  11. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/h5reader.py +11 -0
  12. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/h5writer.py +15 -0
  13. scope_profiler-0.7.3/src/scope_profiler/html_report.py +3136 -0
  14. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/metadata.py +14 -13
  15. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/_utils.py +15 -3
  16. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/callgraph.py +3 -2
  17. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/duration_timeseries.py +1 -0
  18. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/durations.py +1 -1
  19. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/flame.py +22 -8
  20. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/gantt.py +14 -4
  21. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/heatmap.py +4 -2
  22. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/histogram.py +1 -0
  23. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/imbalance.py +2 -1
  24. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/likwid.py +5 -1
  25. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/perf_events.py +3 -2
  26. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/roofline.py +12 -2
  27. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/profile_config.py +43 -16
  28. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/profile_manager.py +104 -13
  29. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/region_profiler.py +8 -0
  30. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/summary.py +135 -55
  31. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_app.py +1 -1
  32. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_async_profiling.py +9 -3
  33. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_c_api.py +1 -1
  34. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_fortran_api.py +406 -2
  35. scope_profiler-0.7.3/src/scope_profiler/tests/test_html_report.py +2123 -0
  36. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_ipython_magics.py +1 -5
  37. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_metadata.py +76 -16
  38. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_post_processing.py +60 -0
  39. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_region_source.py +8 -3
  40. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_callgraph_plot.py +2 -1
  41. scope_profiler-0.7.3/src/scope_profiler/tests/unit/test_gpu_summary.py +152 -0
  42. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_gpu_timing.py +18 -0
  43. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_native_trace_versions.py +3 -3
  44. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_region_variants.py +67 -0
  45. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_summary_rendering.py +18 -0
  46. {scope_profiler-0.7.2 → scope_profiler-0.7.3/src/scope_profiler.egg-info}/PKG-INFO +5 -2
  47. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler.egg-info/SOURCES.txt +1 -0
  48. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler.egg-info/requires.txt +1 -1
  49. scope_profiler-0.7.2/src/scope_profiler/fortran/scope_profiler.f90 +0 -362
  50. scope_profiler-0.7.2/src/scope_profiler/html_report.py +0 -1423
  51. scope_profiler-0.7.2/src/scope_profiler/tests/test_html_report.py +0 -835
  52. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/LICENSE.txt +0 -0
  53. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/MANIFEST.in +0 -0
  54. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/cmake/scope-profilerConfig.cmake.in +0 -0
  55. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/examples/cmake/CMakeLists.txt +0 -0
  56. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/examples/cmake/main.cpp +0 -0
  57. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/examples/cmake/mpi.cpp +0 -0
  58. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/examples/cmake/native.c +0 -0
  59. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/examples/ex_mpi_numpy_wrappers.py +0 -0
  60. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/examples/ex_mpi_profiling_options.py +0 -0
  61. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/examples/ex_mpi_wrappers.py +0 -0
  62. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/setup.cfg +0 -0
  63. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/__init__.py +0 -0
  64. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/_assets/__init__.py +0 -0
  65. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/benchmark.py +0 -0
  66. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/Makefile +0 -0
  67. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/example.c +0 -0
  68. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/scope_profiler.c +0 -0
  69. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/scope_profiler.hpp +0 -0
  70. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/scope_profiler_hdf5.h +0 -0
  71. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/scope_profiler_impl.h +0 -0
  72. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/c/scope_profiler_mpi.hpp +0 -0
  73. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/call_stack.py +0 -0
  74. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/chrome_trace_export.py +0 -0
  75. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/concurrency.py +0 -0
  76. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/fortran/Makefile +0 -0
  77. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/fortran/example.f90 +0 -0
  78. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/h5schema.py +0 -0
  79. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/inspection.py +0 -0
  80. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/ipython_magics.py +0 -0
  81. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/json_export.py +0 -0
  82. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/likwid_data.py +0 -0
  83. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/line_profile_cli.py +0 -0
  84. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/mcp_server/__init__.py +0 -0
  85. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/mcp_server/__main__.py +0 -0
  86. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/mcp_server/server.py +0 -0
  87. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/mcp_server/tools.py +0 -0
  88. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/memray.py +0 -0
  89. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/mpi_launch.py +0 -0
  90. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/mpi_region.py +0 -0
  91. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/mpi_wrappers.py +0 -0
  92. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/native_trace.py +0 -0
  93. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/perf_events.py +0 -0
  94. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/__init__.py +0 -0
  95. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/scaling.py +0 -0
  96. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/statistics.py +0 -0
  97. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/plotting_scripts/timeline.py +0 -0
  98. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/post_processing.py +0 -0
  99. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/prof_export.py +0 -0
  100. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/profile_io.py +0 -0
  101. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/py.typed +0 -0
  102. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/pytest_plugin.py +0 -0
  103. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/region.py +0 -0
  104. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/results.py +0 -0
  105. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/speedscope_export.py +0 -0
  106. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/__init__.py +0 -0
  107. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/check_mpi_launch.py +0 -0
  108. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/check_parallel_hdf5.py +0 -0
  109. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/conftest.py +0 -0
  110. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/examples.py +0 -0
  111. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/examples_pylikwid.py +0 -0
  112. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/fixtures/compatibility/README.md +0 -0
  113. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-1.h5.gz.b64 +0 -0
  114. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-2.h5.gz.b64 +0 -0
  115. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-3.h5.gz.b64 +0 -0
  116. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/fixtures/compatibility/json-v1.json +0 -0
  117. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/fixtures/compatibility/native-v1.spt.b64 +0 -0
  118. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/fixtures/compatibility/native-v2.spt.b64 +0 -0
  119. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/pylikwid_readme.py +0 -0
  120. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_aggregation.py +0 -0
  121. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_api_shortcuts.py +0 -0
  122. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_benchmark.py +0 -0
  123. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_buffer_growth.py +0 -0
  124. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_c_hdf5_output.py +0 -0
  125. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_chrome_trace_export.py +0 -0
  126. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_compatibility_fixtures.py +0 -0
  127. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_diff.py +0 -0
  128. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_documented_formats.py +0 -0
  129. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_in_memory_results.py +0 -0
  130. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_inspection.py +0 -0
  131. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_json_export.py +0 -0
  132. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_label.py +0 -0
  133. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_likwid_data.py +0 -0
  134. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_line_profile_cli.py +0 -0
  135. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_main_cli.py +0 -0
  136. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_mcp_server.py +0 -0
  137. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_mcp_tools.py +0 -0
  138. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_memray.py +0 -0
  139. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_mixed_language.py +0 -0
  140. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_mpi.py +0 -0
  141. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_multiple_sessions.py +0 -0
  142. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_multiprocessing.py +0 -0
  143. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_output_size.py +0 -0
  144. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_overhead.py +0 -0
  145. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_overhead_io.py +0 -0
  146. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_perf_events.py +0 -0
  147. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_prof_export.py +0 -0
  148. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_profile_config_toml.py +0 -0
  149. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_profiling_options.py +0 -0
  150. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_pytest_plugin.py +0 -0
  151. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_readme.py +0 -0
  152. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_repeated_finalize.py +0 -0
  153. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_results_api.py +0 -0
  154. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_set_version.py +0 -0
  155. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_speedscope_export.py +0 -0
  156. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_storage_size.py +0 -0
  157. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_summary_likwid.py +0 -0
  158. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_threading.py +0 -0
  159. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/test_tui.py +0 -0
  160. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/__init__.py +0 -0
  161. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_call_stack.py +0 -0
  162. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_call_stack_properties.py +0 -0
  163. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_concurrency.py +0 -0
  164. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_h5_failure_paths.py +0 -0
  165. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_h5_roundtrip.py +0 -0
  166. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_h5writer.py +0 -0
  167. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_lazy_config.py +0 -0
  168. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_likwid_child_env.py +0 -0
  169. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_merge_results.py +0 -0
  170. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_mpi_launch.py +0 -0
  171. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_mpi_wrappers.py +0 -0
  172. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_native_hdf5_inputs.py +0 -0
  173. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_payload_collection.py +0 -0
  174. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tests/unit/test_recursive_tracer.py +0 -0
  175. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler/tui.py +0 -0
  176. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler.egg-info/dependency_links.txt +0 -0
  177. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/src/scope_profiler.egg-info/entry_points.txt +0 -0
  178. {scope_profiler-0.7.2 → scope_profiler-0.7.3}/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.3 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.3
4
4
  Summary: Profile code regions in python, optionally with LIKWID markers.
5
5
  Author: Max
6
6
  License-Expression: MIT
@@ -56,7 +56,7 @@ Provides-Extra: extras
56
56
  Requires-Dist: memray; extra == "extras"
57
57
  Requires-Dist: scope-profiler[compression,fortran,line-profiler,mcp,mpi,notebook,nvtx,perf-events,pproc,tui]; extra == "extras"
58
58
  Provides-Extra: dev
59
- Requires-Dist: black[jupyter]; extra == "dev"
59
+ Requires-Dist: black[jupyter]<27,>=26.1; extra == "dev"
60
60
  Requires-Dist: isort>=9.0.0; extra == "dev"
61
61
  Requires-Dist: mypy>=1.11.0; extra == "dev"
62
62
  Requires-Dist: ruff<0.17,>=0.16; extra == "dev"
@@ -97,6 +97,7 @@ pip install scope-profiler
97
97
  import scope_profiler as sp
98
98
 
99
99
  with sp.session():
100
+
100
101
  @sp.profile("main")
101
102
  def main():
102
103
  with sp.region("work"):
@@ -125,11 +126,13 @@ lifecycle:
125
126
  ```python
126
127
  import scope_profiler as sp
127
128
 
129
+
128
130
  @sp.profile("main")
129
131
  def main():
130
132
  with sp.region("iteration"):
131
133
  work()
132
134
 
135
+
133
136
  main()
134
137
  ```
135
138
 
@@ -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
 
@@ -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.3"
9
9
  description = "Profile code regions in python, optionally with LIKWID markers."
10
10
  readme = "README.md"
11
11
  keywords = [ "python" ]
@@ -91,7 +91,10 @@ optional-dependencies.extras = [
91
91
  ]
92
92
 
93
93
  optional-dependencies.dev = [
94
- "black[jupyter]",
94
+ # 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
96
+ # series: black changes its stable style only in the January release.
97
+ "black[jupyter] >= 26.1, < 27",
95
98
  "isort >= 9.0.0",
96
99
  "mypy >= 1.11.0",
97
100
  # Pinned to a minor series. Ruff's default rule set grows between minor
@@ -160,6 +163,12 @@ scope_profiler = [
160
163
  [tool.isort]
161
164
  profile = "black"
162
165
 
166
+ [tool.black]
167
+ # Inferred from requires-python, black also targets not-yet-released Pythons
168
+ # and then warns that it cannot verify its output on the running one. The
169
+ # oldest supported version is what decides the formatting anyway.
170
+ target-version = [ "py310" ]
171
+
163
172
  [tool.mypy]
164
173
  # Incremental typing covers the core public result/configuration objects and
165
174
  # the pure helpers they rest on. Optional integrations and older dynamically
@@ -246,6 +255,7 @@ exclude_also = [
246
255
  ]
247
256
 
248
257
  [tool.ruff]
258
+ # Linting only: black formats the code. Do not run `ruff format`.
249
259
  src = [ "src" ]
250
260
 
251
261
  [tool.ruff.lint]
@@ -339,9 +339,9 @@ def _report(argv):
339
339
  parser.add_argument(
340
340
  "-o",
341
341
  "--output",
342
- required=True,
342
+ default="report.html",
343
343
  metavar="PATH",
344
- help="HTML file to write",
344
+ help="HTML file to write (default: report.html)",
345
345
  )
346
346
  parser.add_argument(
347
347
  "--include",
@@ -375,6 +375,14 @@ def _report(argv):
375
375
  "~4.7 MB smaller, but the charts then need a network connection"
376
376
  ),
377
377
  )
378
+ parser.add_argument(
379
+ "--no-individual-reports",
380
+ action="store_true",
381
+ help=(
382
+ "When comparing runs, skip the full per-run reports otherwise "
383
+ "written next to the comparison and linked from it"
384
+ ),
385
+ )
378
386
  parser.add_argument(
379
387
  "--show",
380
388
  action="store_true",
@@ -394,6 +402,7 @@ def _report(argv):
394
402
  columns=args.columns,
395
403
  include_charts=not args.no_charts,
396
404
  charts_cdn=args.charts_cdn,
405
+ individual_reports=not args.no_individual_reports,
397
406
  )
398
407
  print(f"Report written to: {output}")
399
408
  if args.show:
@@ -492,6 +492,15 @@ const FILE_PATTERNS = ["", "/", "\\", "x", "-"];
492
492
  * `{ laneBy: "rank" }` for the compact one-row-per-rank view, which suits a
493
493
  * flat profile compared across many ranks.
494
494
  */
495
+ // " (rank N)" after a label, or nothing when the row's run had one rank:
496
+ // there is nothing for the rank to tell apart. `file_ranks` maps each run to
497
+ // its rank count; a payload without it predates the field, so every rank
498
+ // stays named.
499
+ const rankSuffix = (payload, row) =>
500
+ payload.file_ranks?.[row.file ?? "run"] === 1
501
+ ? ""
502
+ : ` (rank ${row.rank ?? 0})`;
503
+
495
504
  export function buildGanttFigure(payload, options = {}) {
496
505
  const { baseLayout, axis } = palette(options);
497
506
  const intervals = filtered(values(payload, "intervals", "gantt"), options);
@@ -502,7 +511,7 @@ export function buildGanttFigure(payload, options = {}) {
502
511
  // Matching `plot gantt`'s own lane label, extended by the run only when the
503
512
  // payload holds more than one.
504
513
  const regionLane = (row) =>
505
- `${multi ? `${row.file ?? "run"} / ` : ""}${row.region} (rank ${row.rank ?? 0})`;
514
+ `${multi ? `${row.file ?? "run"} / ` : ""}${row.region}${rankSuffix(payload, row)}`;
506
515
  const laneOf = options.laneBy === "rank" ? rankLane : regionLane;
507
516
  const lanes = [...new Set(intervals.map(laneOf))];
508
517
  // A lane index rather than the lane string on every bar. The label is
@@ -597,7 +606,7 @@ export function buildFlameFigure(payload, options = {}) {
597
606
  parents.push(anchors[index]);
598
607
  markerColors.push(colors.get(call.region));
599
608
  hovertext.push(
600
- `<b>${label(call.region)}</b><br>${label(call.file ?? "run")} / rank ${call.rank ?? 0}<br>start: ${call.start_seconds.toPrecision(6)} s<br>inclusive: ${duration(call).toPrecision(6)} s`,
609
+ `<b>${label(call.region)}</b><br>${label(call.file ?? "run")}${payload.file_ranks?.[call.file ?? "run"] === 1 ? "" : ` / rank ${call.rank ?? 0}`}<br>start: ${call.start_seconds.toPrecision(6)} s<br>inclusive: ${duration(call).toPrecision(6)} s`,
601
610
  );
602
611
  });
603
612
  const layout = baseLayout({
@@ -1751,11 +1760,11 @@ export function buildRooflineFigure(payload, options = {}) {
1751
1760
  marker: { color: colors.get(name), size: 9 },
1752
1761
  customdata: interactionData(rows, (point) => [
1753
1762
  label(point.region),
1754
- point.rank,
1763
+ rankSuffix(payload, point),
1755
1764
  point.bandwidth_gbs,
1756
1765
  ]),
1757
1766
  hovertemplate:
1758
- "<b>%{customdata[0]}</b> (rank %{customdata[1]})" +
1767
+ "<b>%{customdata[0]}</b>%{customdata[1]}" +
1759
1768
  "<br>intensity: %{x:.6g} FLOP/byte" +
1760
1769
  "<br>performance: %{y:.6g} GFLOP/s" +
1761
1770
  "<br>bandwidth: %{customdata[2]:.6g} GB/s<extra></extra>",
@@ -70,7 +70,7 @@ extern "C" {
70
70
 
71
71
  /* Trace format version written for this profiler; keep in step with
72
72
  * native_trace.py. Bumped to 2 to add per-region source location; a version-2
73
- * reader still accepts version-1 (Fortran-written) files with no source
73
+ * reader still accepts legacy version-1 files with no source
74
74
  * information. */
75
75
  #define SP_FORMAT_VERSION 2
76
76
 
@@ -14,13 +14,36 @@ from tabulate import tabulate
14
14
 
15
15
  from scope_profiler.profile_io import read_profile, read_profile_summary
16
16
  from scope_profiler.results import ProfilingResults
17
- from scope_profiler.summary import region_rows
18
-
19
- METRICS = ("total", "avg", "min", "max", "p50", "p95", "p99", "imbalance", "calls")
20
- _SUMMARY_METRICS = {"total", "avg", "min", "max", "imbalance", "calls"}
17
+ from scope_profiler.summary import gpu_timing_warnings, region_row, region_rows
18
+
19
+ METRICS = (
20
+ "gpu_total",
21
+ "gpu_avg",
22
+ "total",
23
+ "avg",
24
+ "min",
25
+ "max",
26
+ "p50",
27
+ "p95",
28
+ "p99",
29
+ "imbalance",
30
+ "calls",
31
+ )
32
+ _SUMMARY_METRICS = {
33
+ "gpu_total",
34
+ "gpu_avg",
35
+ "total",
36
+ "avg",
37
+ "min",
38
+ "max",
39
+ "imbalance",
40
+ "calls",
41
+ }
21
42
  SORT_KEYS = ("delta", "pct", "name")
22
43
 
23
44
  _METRIC_LABELS = {
45
+ "gpu_total": "gpu total [s]",
46
+ "gpu_avg": "gpu avg [s]",
24
47
  "total": "total [s]",
25
48
  "avg": "avg [s]",
26
49
  "min": "min [s]",
@@ -81,11 +104,17 @@ def diff_rows(
81
104
 
82
105
  rows_a = {
83
106
  row["name"]: row
84
- for row in region_rows(results_a, include=include, exclude=exclude, ranks=ranks)
107
+ for row in (
108
+ region_row(region, ranks)
109
+ for region in results_a.get_regions(include=include, exclude=exclude)
110
+ )
85
111
  }
86
112
  rows_b = {
87
113
  row["name"]: row
88
- for row in region_rows(results_b, include=include, exclude=exclude, ranks=ranks)
114
+ for row in (
115
+ region_row(region, ranks)
116
+ for region in results_b.get_regions(include=include, exclude=exclude)
117
+ )
89
118
  }
90
119
 
91
120
  rows = []
@@ -227,6 +256,12 @@ def diff_files(
227
256
  print(f"b: {results_b.default_title()}", file=stream)
228
257
  print("=" * 78 + "\n", file=stream)
229
258
 
259
+ for label, results in (("a", results_a), ("b", results_b)):
260
+ for warning in gpu_timing_warnings(
261
+ region_rows(results, include=include, exclude=exclude, ranks=ranks)
262
+ ):
263
+ print(f"{label}: {warning}", file=stream)
264
+
230
265
  rows = diff_rows(
231
266
  results_a,
232
267
  results_b,