scope-profiler 0.6.0__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/CMakeLists.txt +1 -1
- {scope_profiler-0.6.0/src/scope_profiler.egg-info → scope_profiler-0.6.2}/PKG-INFO +22 -22
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/README.md +19 -21
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/pyproject.toml +4 -2
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/__init__.py +20 -1
- scope_profiler-0.6.2/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +1985 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/html_report.py +48 -5
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/__init__.py +10 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/_utils.py +29 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/callgraph.py +5 -2
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/duration_timeseries.py +3 -1
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/durations.py +36 -4
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/flame.py +5 -2
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/gantt.py +3 -1
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/heatmap.py +3 -1
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/histogram.py +3 -1
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/imbalance.py +3 -1
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/likwid.py +3 -1
- scope_profiler-0.6.2/src/scope_profiler/plotting_scripts/roofline.py +291 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/scaling.py +206 -40
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/statistics.py +25 -11
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/timeline.py +3 -1
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/post_processing.py +292 -32
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/prof_export.py +123 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/profile_manager.py +5 -2
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/json-v1.json +3 -13
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_documented_formats.py +25 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_html_report.py +38 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_post_processing.py +605 -3
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_prof_export.py +69 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_lazy_config.py +24 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2/src/scope_profiler.egg-info}/PKG-INFO +22 -22
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/SOURCES.txt +1 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/requires.txt +2 -0
- scope_profiler-0.6.0/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +0 -945
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/LICENSE.txt +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/MANIFEST.in +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/cmake/scope-profilerConfig.cmake.in +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/examples/cmake/CMakeLists.txt +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/examples/cmake/main.cpp +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/examples/cmake/mpi.cpp +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/examples/cmake/native.c +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/examples/ex_mpi_numpy_wrappers.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/examples/ex_mpi_profiling_options.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/examples/ex_mpi_wrappers.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/setup.cfg +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/__main__.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/_assets/__init__.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/benchmark.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/Makefile +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/example.c +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler.c +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler.h +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler.hpp +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler_hdf5.h +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler_impl.h +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler_mpi.hpp +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/call_stack.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/chrome_trace_export.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/concurrency.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/diff.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/fortran/Makefile +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/fortran/example.f90 +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/fortran/scope_profiler.f90 +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/gpu_timing.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/h5reader.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/h5schema.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/h5writer.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/inspection.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/ipython_magics.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/json_export.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/likwid_data.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/line_profile_cli.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/__init__.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/__main__.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/server.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/tools.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/memray.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/metadata.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/mpi_launch.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/mpi_region.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/mpi_wrappers.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/native_trace.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/perf_events.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/perf_events.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/profile_config.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/profile_io.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/py.typed +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/pytest_plugin.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/region.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/region_profiler.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/results.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/speedscope_export.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/summary.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/__init__.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/check_mpi_launch.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/check_parallel_hdf5.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/examples.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/examples_pylikwid.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/README.md +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-1.h5.gz.b64 +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-2.h5.gz.b64 +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-3.h5.gz.b64 +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/native-v1.spt.b64 +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/native-v2.spt.b64 +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/pylikwid_readme.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_aggregation.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_api_shortcuts.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_app.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_async_profiling.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_benchmark.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_buffer_growth.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_c_api.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_c_hdf5_output.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_chrome_trace_export.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_compatibility_fixtures.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_diff.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_fortran_api.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_in_memory_results.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_inspection.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_ipython_magics.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_json_export.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_label.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_likwid_data.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_line_profile_cli.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_main_cli.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mcp_server.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mcp_tools.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_memray.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_metadata.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mixed_language.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mpi.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_multiple_sessions.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_multiprocessing.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_output_size.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_overhead.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_overhead_io.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_perf_events.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_profile_config_toml.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_profiling_options.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_pytest_plugin.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_readme.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_region_source.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_repeated_finalize.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_results_api.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_set_version.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_speedscope_export.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_storage_size.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_summary_likwid.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_threading.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_tui.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/__init__.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_call_stack.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_call_stack_properties.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_callgraph_plot.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_concurrency.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_gpu_timing.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5_failure_paths.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5_roundtrip.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5writer.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_likwid_child_env.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_merge_results.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_mpi_launch.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_mpi_wrappers.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_native_hdf5_inputs.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_native_trace_versions.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_payload_collection.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_recursive_tracer.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_region_variants.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler/tui.py +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/dependency_links.txt +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/entry_points.txt +0 -0
- {scope_profiler-0.6.0 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scope-profiler
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Summary: Profile code regions in python, optionally with LIKWID markers.
|
|
5
5
|
Author: Max
|
|
6
6
|
License-Expression: MIT
|
|
@@ -40,12 +40,14 @@ Requires-Dist: mpi4py; extra == "mpi"
|
|
|
40
40
|
Provides-Extra: notebook
|
|
41
41
|
Requires-Dist: ipython; extra == "notebook"
|
|
42
42
|
Provides-Extra: pproc
|
|
43
|
+
Requires-Dist: flameprof; extra == "pproc"
|
|
43
44
|
Requires-Dist: ipykernel; extra == "pproc"
|
|
44
45
|
Requires-Dist: jupyterlab; extra == "pproc"
|
|
45
46
|
Requires-Dist: matplotlib; extra == "pproc"
|
|
46
47
|
Requires-Dist: maxplotlibx==0.1.9; extra == "pproc"
|
|
47
48
|
Requires-Dist: pandas; extra == "pproc"
|
|
48
49
|
Requires-Dist: plotly; extra == "pproc"
|
|
50
|
+
Requires-Dist: pyarrow; extra == "pproc"
|
|
49
51
|
Requires-Dist: pyvis>=0.3.2; extra == "pproc"
|
|
50
52
|
Requires-Dist: snakeviz; extra == "pproc"
|
|
51
53
|
Requires-Dist: tabulate; extra == "pproc"
|
|
@@ -77,8 +79,6 @@ Requires-Dist: tabulate; extra == "tui"
|
|
|
77
79
|
Requires-Dist: textual>=0.86; extra == "tui"
|
|
78
80
|
Dynamic: license-file
|
|
79
81
|
|
|
80
|
-
|
|
81
|
-
|
|
82
82
|
<!-- Generated README.md is rendered from this file by docs/render_markdown.py. -->
|
|
83
83
|
|
|
84
84
|
# scope-profiler
|
|
@@ -87,13 +87,13 @@ Profile Python code regions—and optionally C, Fortran, MPI, NVTX, and
|
|
|
87
87
|
[LIKWID](https://github.com/RRZE-HPC/likwid)—with one consistent API and
|
|
88
88
|
HDF5 output format.
|
|
89
89
|
|
|
90
|
-
```
|
|
90
|
+
```bash
|
|
91
91
|
pip install scope-profiler
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
## Quick start
|
|
95
95
|
|
|
96
|
-
```
|
|
96
|
+
```python
|
|
97
97
|
import scope_profiler as sp
|
|
98
98
|
|
|
99
99
|
with sp.session():
|
|
@@ -111,7 +111,7 @@ calls, importable from the package root. They are `ProfileManager` class
|
|
|
111
111
|
methods acting on the process-wide default manager, so the two spellings
|
|
112
112
|
are interchangeable:
|
|
113
113
|
|
|
114
|
-
```
|
|
114
|
+
```python
|
|
115
115
|
from scope_profiler import ProfileManager
|
|
116
116
|
|
|
117
117
|
with ProfileManager.session():
|
|
@@ -123,7 +123,7 @@ Create independent managers when two profiling sessions need to coexist.
|
|
|
123
123
|
Each manager records only calls made through that manager and writes its
|
|
124
124
|
own output:
|
|
125
125
|
|
|
126
|
-
```
|
|
126
|
+
```python
|
|
127
127
|
compute_profiler = ProfileManager()
|
|
128
128
|
io_profiler = ProfileManager()
|
|
129
129
|
|
|
@@ -146,7 +146,7 @@ and reports each thread’s name, lifetime and CPU time;
|
|
|
146
146
|
splits every call into the time its task held the thread and the time it
|
|
147
147
|
spent awaiting:
|
|
148
148
|
|
|
149
|
-
```
|
|
149
|
+
```python
|
|
150
150
|
with ProfileManager.session(track_async=True, return_results=True) as run:
|
|
151
151
|
asyncio.run(main())
|
|
152
152
|
|
|
@@ -158,7 +158,7 @@ for task in run.results.tasks[0]:
|
|
|
158
158
|
|
|
159
159
|
You can also profile a script without changing its source:
|
|
160
160
|
|
|
161
|
-
```
|
|
161
|
+
```bash
|
|
162
162
|
scope-profiler run my_script.py
|
|
163
163
|
scope-profiler inspect profiling_data.h5
|
|
164
164
|
scope-profiler plot default profiling_data.h5 -o figures
|
|
@@ -172,7 +172,7 @@ region for every selected test, named from its pytest node id, so the
|
|
|
172
172
|
normal post-processing commands can show which tests consume the suite’s
|
|
173
173
|
time:
|
|
174
174
|
|
|
175
|
-
```
|
|
175
|
+
```bash
|
|
176
176
|
pytest --scope-profile --scope-profile-out pytest-profile.h5
|
|
177
177
|
scope-profiler inspect pytest-profile.h5 --regions-only --sort total
|
|
178
178
|
scope-profiler plot durations pytest-profile.h5 -o pytest-plots
|
|
@@ -181,7 +181,7 @@ scope-profiler plot durations pytest-profile.h5 -o pytest-plots
|
|
|
181
181
|
By default it measures only each test’s `call` phase. Include fixture
|
|
182
182
|
setup and teardown when those are relevant to the investigation:
|
|
183
183
|
|
|
184
|
-
```
|
|
184
|
+
```bash
|
|
185
185
|
pytest --scope-profile --scope-profile-phases=all
|
|
186
186
|
```
|
|
187
187
|
|
|
@@ -200,7 +200,7 @@ column rather than whole. JSON holds exactly the same data — every call,
|
|
|
200
200
|
in integer nanoseconds — for anything that would rather not open an HDF5
|
|
201
201
|
file:
|
|
202
202
|
|
|
203
|
-
```
|
|
203
|
+
```bash
|
|
204
204
|
scope-profiler run -o profile.json my_script.py # or .json.gz
|
|
205
205
|
scope-profiler run -o report.html my_script.py # rendered report
|
|
206
206
|
scope-profiler export json profiling_data.h5 -o exports # convert an existing run
|
|
@@ -211,7 +211,7 @@ Profiling can be suspended around setup, I/O, or other phases that
|
|
|
211
211
|
should not appear in the trace. Pause at scope boundaries and resume
|
|
212
212
|
when measurement is needed again:
|
|
213
213
|
|
|
214
|
-
```
|
|
214
|
+
```python
|
|
215
215
|
ProfileManager.pause()
|
|
216
216
|
simulation.prepare_output()
|
|
217
217
|
ProfileManager.resume()
|
|
@@ -224,7 +224,7 @@ silently span the paused period.
|
|
|
224
224
|
For time-stepping simulations, `sample_every()` provides the same
|
|
225
225
|
control with an explicit timestep number:
|
|
226
226
|
|
|
227
|
-
```
|
|
227
|
+
```python
|
|
228
228
|
with ProfileManager.sample_every(10) as profile_step:
|
|
229
229
|
for timestep in range(num_steps):
|
|
230
230
|
with profile_step(timestep):
|
|
@@ -234,7 +234,7 @@ with ProfileManager.sample_every(10) as profile_step:
|
|
|
234
234
|
The equivalent fully manual form is useful when the simulation has
|
|
235
235
|
additional conditions around profiling:
|
|
236
236
|
|
|
237
|
-
```
|
|
237
|
+
```python
|
|
238
238
|
for timestep in range(num_steps):
|
|
239
239
|
if timestep % 10 == 0:
|
|
240
240
|
ProfileManager.resume()
|
|
@@ -262,7 +262,7 @@ For dense traces, the Gantt view supports time windows, duration
|
|
|
262
262
|
filtering, call coalescing, and call-depth collapsing. A binned
|
|
263
263
|
occupancy heatmap avoids drawing every short event:
|
|
264
264
|
|
|
265
|
-
```
|
|
265
|
+
```bash
|
|
266
266
|
scope-profiler plot gantt profiling_data.h5 -o figures \
|
|
267
267
|
--min-duration 0.001 --aggregate-calls 25 --collapse-depth 2
|
|
268
268
|
scope-profiler plot density profiling_data.h5 -o figures \
|
|
@@ -281,7 +281,7 @@ chart](https://raw.githubusercontent.com/max-models/scope-profiler/refs/heads/de
|
|
|
281
281
|
|
|
282
282
|
The overhead benchmark measures the cost of each instrumentation mode:
|
|
283
283
|
|
|
284
|
-
```
|
|
284
|
+
```bash
|
|
285
285
|
python examples/benchmark_overhead.py
|
|
286
286
|
```
|
|
287
287
|
|
|
@@ -293,12 +293,12 @@ type](https://raw.githubusercontent.com/max-models/scope-profiler/refs/heads/dev
|
|
|
293
293
|
`%load_ext scope_profiler.ipython_magics` adds magics for the
|
|
294
294
|
measure/compare loop, so a notebook needs no `session()` boilerplate:
|
|
295
295
|
|
|
296
|
-
```
|
|
296
|
+
```python
|
|
297
297
|
%%scope_recursive
|
|
298
298
|
result = solve(problem) # every call recorded, nothing instrumented
|
|
299
299
|
```
|
|
300
300
|
|
|
301
|
-
```
|
|
301
|
+
```python
|
|
302
302
|
%scope_compare baseline candidate
|
|
303
303
|
```
|
|
304
304
|
|
|
@@ -308,7 +308,7 @@ and `%scope_load` pulls in an HDF5 run from an MPI job to compare
|
|
|
308
308
|
against. See the [notebook magics
|
|
309
309
|
guide](https://max-models.github.io/scope-profiler/guide/notebook_magics.html).
|
|
310
310
|
|
|
311
|
-
```
|
|
311
|
+
```bash
|
|
312
312
|
pip install "scope-profiler[notebook]"
|
|
313
313
|
```
|
|
314
314
|
|
|
@@ -344,7 +344,7 @@ Install [Quarto](https://quarto.org/docs/get-started/) and Pandoc first,
|
|
|
344
344
|
then create a development environment and run the docs target from the
|
|
345
345
|
repository root:
|
|
346
346
|
|
|
347
|
-
```
|
|
347
|
+
```bash
|
|
348
348
|
python -m venv .venv
|
|
349
349
|
source .venv/bin/activate
|
|
350
350
|
python -m pip install --upgrade pip
|
|
@@ -359,7 +359,7 @@ workflow uses the same `make -C docs html` command.
|
|
|
359
359
|
|
|
360
360
|
## Development
|
|
361
361
|
|
|
362
|
-
```
|
|
362
|
+
```bash
|
|
363
363
|
pip install -e '.[dev]'
|
|
364
364
|
pytest
|
|
365
365
|
```
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
<!-- Generated README.md is rendered from this file by docs/render_markdown.py. -->
|
|
4
2
|
|
|
5
3
|
# scope-profiler
|
|
@@ -8,13 +6,13 @@ Profile Python code regions—and optionally C, Fortran, MPI, NVTX, and
|
|
|
8
6
|
[LIKWID](https://github.com/RRZE-HPC/likwid)—with one consistent API and
|
|
9
7
|
HDF5 output format.
|
|
10
8
|
|
|
11
|
-
```
|
|
9
|
+
```bash
|
|
12
10
|
pip install scope-profiler
|
|
13
11
|
```
|
|
14
12
|
|
|
15
13
|
## Quick start
|
|
16
14
|
|
|
17
|
-
```
|
|
15
|
+
```python
|
|
18
16
|
import scope_profiler as sp
|
|
19
17
|
|
|
20
18
|
with sp.session():
|
|
@@ -32,7 +30,7 @@ calls, importable from the package root. They are `ProfileManager` class
|
|
|
32
30
|
methods acting on the process-wide default manager, so the two spellings
|
|
33
31
|
are interchangeable:
|
|
34
32
|
|
|
35
|
-
```
|
|
33
|
+
```python
|
|
36
34
|
from scope_profiler import ProfileManager
|
|
37
35
|
|
|
38
36
|
with ProfileManager.session():
|
|
@@ -44,7 +42,7 @@ Create independent managers when two profiling sessions need to coexist.
|
|
|
44
42
|
Each manager records only calls made through that manager and writes its
|
|
45
43
|
own output:
|
|
46
44
|
|
|
47
|
-
```
|
|
45
|
+
```python
|
|
48
46
|
compute_profiler = ProfileManager()
|
|
49
47
|
io_profiler = ProfileManager()
|
|
50
48
|
|
|
@@ -67,7 +65,7 @@ and reports each thread’s name, lifetime and CPU time;
|
|
|
67
65
|
splits every call into the time its task held the thread and the time it
|
|
68
66
|
spent awaiting:
|
|
69
67
|
|
|
70
|
-
```
|
|
68
|
+
```python
|
|
71
69
|
with ProfileManager.session(track_async=True, return_results=True) as run:
|
|
72
70
|
asyncio.run(main())
|
|
73
71
|
|
|
@@ -79,7 +77,7 @@ for task in run.results.tasks[0]:
|
|
|
79
77
|
|
|
80
78
|
You can also profile a script without changing its source:
|
|
81
79
|
|
|
82
|
-
```
|
|
80
|
+
```bash
|
|
83
81
|
scope-profiler run my_script.py
|
|
84
82
|
scope-profiler inspect profiling_data.h5
|
|
85
83
|
scope-profiler plot default profiling_data.h5 -o figures
|
|
@@ -93,7 +91,7 @@ region for every selected test, named from its pytest node id, so the
|
|
|
93
91
|
normal post-processing commands can show which tests consume the suite’s
|
|
94
92
|
time:
|
|
95
93
|
|
|
96
|
-
```
|
|
94
|
+
```bash
|
|
97
95
|
pytest --scope-profile --scope-profile-out pytest-profile.h5
|
|
98
96
|
scope-profiler inspect pytest-profile.h5 --regions-only --sort total
|
|
99
97
|
scope-profiler plot durations pytest-profile.h5 -o pytest-plots
|
|
@@ -102,7 +100,7 @@ scope-profiler plot durations pytest-profile.h5 -o pytest-plots
|
|
|
102
100
|
By default it measures only each test’s `call` phase. Include fixture
|
|
103
101
|
setup and teardown when those are relevant to the investigation:
|
|
104
102
|
|
|
105
|
-
```
|
|
103
|
+
```bash
|
|
106
104
|
pytest --scope-profile --scope-profile-phases=all
|
|
107
105
|
```
|
|
108
106
|
|
|
@@ -121,7 +119,7 @@ column rather than whole. JSON holds exactly the same data — every call,
|
|
|
121
119
|
in integer nanoseconds — for anything that would rather not open an HDF5
|
|
122
120
|
file:
|
|
123
121
|
|
|
124
|
-
```
|
|
122
|
+
```bash
|
|
125
123
|
scope-profiler run -o profile.json my_script.py # or .json.gz
|
|
126
124
|
scope-profiler run -o report.html my_script.py # rendered report
|
|
127
125
|
scope-profiler export json profiling_data.h5 -o exports # convert an existing run
|
|
@@ -132,7 +130,7 @@ Profiling can be suspended around setup, I/O, or other phases that
|
|
|
132
130
|
should not appear in the trace. Pause at scope boundaries and resume
|
|
133
131
|
when measurement is needed again:
|
|
134
132
|
|
|
135
|
-
```
|
|
133
|
+
```python
|
|
136
134
|
ProfileManager.pause()
|
|
137
135
|
simulation.prepare_output()
|
|
138
136
|
ProfileManager.resume()
|
|
@@ -145,7 +143,7 @@ silently span the paused period.
|
|
|
145
143
|
For time-stepping simulations, `sample_every()` provides the same
|
|
146
144
|
control with an explicit timestep number:
|
|
147
145
|
|
|
148
|
-
```
|
|
146
|
+
```python
|
|
149
147
|
with ProfileManager.sample_every(10) as profile_step:
|
|
150
148
|
for timestep in range(num_steps):
|
|
151
149
|
with profile_step(timestep):
|
|
@@ -155,7 +153,7 @@ with ProfileManager.sample_every(10) as profile_step:
|
|
|
155
153
|
The equivalent fully manual form is useful when the simulation has
|
|
156
154
|
additional conditions around profiling:
|
|
157
155
|
|
|
158
|
-
```
|
|
156
|
+
```python
|
|
159
157
|
for timestep in range(num_steps):
|
|
160
158
|
if timestep % 10 == 0:
|
|
161
159
|
ProfileManager.resume()
|
|
@@ -183,7 +181,7 @@ For dense traces, the Gantt view supports time windows, duration
|
|
|
183
181
|
filtering, call coalescing, and call-depth collapsing. A binned
|
|
184
182
|
occupancy heatmap avoids drawing every short event:
|
|
185
183
|
|
|
186
|
-
```
|
|
184
|
+
```bash
|
|
187
185
|
scope-profiler plot gantt profiling_data.h5 -o figures \
|
|
188
186
|
--min-duration 0.001 --aggregate-calls 25 --collapse-depth 2
|
|
189
187
|
scope-profiler plot density profiling_data.h5 -o figures \
|
|
@@ -202,7 +200,7 @@ chart](https://raw.githubusercontent.com/max-models/scope-profiler/refs/heads/de
|
|
|
202
200
|
|
|
203
201
|
The overhead benchmark measures the cost of each instrumentation mode:
|
|
204
202
|
|
|
205
|
-
```
|
|
203
|
+
```bash
|
|
206
204
|
python examples/benchmark_overhead.py
|
|
207
205
|
```
|
|
208
206
|
|
|
@@ -214,12 +212,12 @@ type](https://raw.githubusercontent.com/max-models/scope-profiler/refs/heads/dev
|
|
|
214
212
|
`%load_ext scope_profiler.ipython_magics` adds magics for the
|
|
215
213
|
measure/compare loop, so a notebook needs no `session()` boilerplate:
|
|
216
214
|
|
|
217
|
-
```
|
|
215
|
+
```python
|
|
218
216
|
%%scope_recursive
|
|
219
217
|
result = solve(problem) # every call recorded, nothing instrumented
|
|
220
218
|
```
|
|
221
219
|
|
|
222
|
-
```
|
|
220
|
+
```python
|
|
223
221
|
%scope_compare baseline candidate
|
|
224
222
|
```
|
|
225
223
|
|
|
@@ -229,7 +227,7 @@ and `%scope_load` pulls in an HDF5 run from an MPI job to compare
|
|
|
229
227
|
against. See the [notebook magics
|
|
230
228
|
guide](https://max-models.github.io/scope-profiler/guide/notebook_magics.html).
|
|
231
229
|
|
|
232
|
-
```
|
|
230
|
+
```bash
|
|
233
231
|
pip install "scope-profiler[notebook]"
|
|
234
232
|
```
|
|
235
233
|
|
|
@@ -265,7 +263,7 @@ Install [Quarto](https://quarto.org/docs/get-started/) and Pandoc first,
|
|
|
265
263
|
then create a development environment and run the docs target from the
|
|
266
264
|
repository root:
|
|
267
265
|
|
|
268
|
-
```
|
|
266
|
+
```bash
|
|
269
267
|
python -m venv .venv
|
|
270
268
|
source .venv/bin/activate
|
|
271
269
|
python -m pip install --upgrade pip
|
|
@@ -280,7 +278,7 @@ workflow uses the same `make -C docs html` command.
|
|
|
280
278
|
|
|
281
279
|
## Development
|
|
282
280
|
|
|
283
|
-
```
|
|
281
|
+
```bash
|
|
284
282
|
pip install -e '.[dev]'
|
|
285
283
|
pytest
|
|
286
284
|
```
|
|
@@ -5,7 +5,7 @@ requires = [ "setuptools", "wheel" ]
|
|
|
5
5
|
|
|
6
6
|
[project]
|
|
7
7
|
name = "scope-profiler"
|
|
8
|
-
version = "0.6.
|
|
8
|
+
version = "0.6.2"
|
|
9
9
|
description = "Profile code regions in python, optionally with LIKWID markers."
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
keywords = [ "python" ]
|
|
@@ -69,12 +69,14 @@ optional-dependencies.notebook = [
|
|
|
69
69
|
]
|
|
70
70
|
|
|
71
71
|
optional-dependencies.pproc = [
|
|
72
|
+
"flameprof",
|
|
72
73
|
"ipykernel",
|
|
73
74
|
"jupyterlab",
|
|
74
75
|
"matplotlib",
|
|
75
76
|
"maxplotlibx == 0.1.9",
|
|
76
77
|
"pandas",
|
|
77
78
|
"plotly",
|
|
79
|
+
"pyarrow",
|
|
78
80
|
"pyvis >= 0.3.2",
|
|
79
81
|
"snakeviz",
|
|
80
82
|
"tabulate",
|
|
@@ -231,7 +233,7 @@ skip_covered = true
|
|
|
231
233
|
#
|
|
232
234
|
# The CI job reaches the LIKWID and parallel-HDF5 paths a developer laptop
|
|
233
235
|
# cannot, so its total is at or above what `coverage report` prints locally.
|
|
234
|
-
fail_under =
|
|
236
|
+
fail_under = 89
|
|
235
237
|
exclude_also = [
|
|
236
238
|
# Typing-only constructs that never execute.
|
|
237
239
|
"if TYPE_CHECKING:",
|
|
@@ -80,6 +80,7 @@ if TYPE_CHECKING:
|
|
|
80
80
|
from scope_profiler.inspection import collect_file_metadata, inspect_file
|
|
81
81
|
from scope_profiler.plotting_scripts import (
|
|
82
82
|
collect_region_statistics,
|
|
83
|
+
collect_roofline_points,
|
|
83
84
|
plot_duration_timeseries,
|
|
84
85
|
plot_durations,
|
|
85
86
|
plot_flame,
|
|
@@ -88,12 +89,19 @@ if TYPE_CHECKING:
|
|
|
88
89
|
plot_gantt,
|
|
89
90
|
plot_perf_events,
|
|
90
91
|
plot_rank_heatmap,
|
|
92
|
+
plot_roofline,
|
|
91
93
|
plot_scaling_efficiency,
|
|
92
94
|
plot_speedup,
|
|
93
95
|
plot_weak_scaling,
|
|
96
|
+
plot_weak_scaling_efficiency,
|
|
94
97
|
write_region_statistics_json,
|
|
95
98
|
)
|
|
96
|
-
from scope_profiler.prof_export import
|
|
99
|
+
from scope_profiler.prof_export import (
|
|
100
|
+
export_flamegraph_svg,
|
|
101
|
+
export_prof,
|
|
102
|
+
load_prof,
|
|
103
|
+
to_pstats,
|
|
104
|
+
)
|
|
97
105
|
from scope_profiler.speedscope_export import export_speedscope
|
|
98
106
|
|
|
99
107
|
__all__ = [
|
|
@@ -122,8 +130,10 @@ __all__ = [
|
|
|
122
130
|
"call_stack_roots",
|
|
123
131
|
"collect_file_metadata",
|
|
124
132
|
"collect_region_statistics",
|
|
133
|
+
"collect_roofline_points",
|
|
125
134
|
"create_html_report",
|
|
126
135
|
"export_chrome_trace",
|
|
136
|
+
"export_flamegraph_svg",
|
|
127
137
|
"export_json",
|
|
128
138
|
"export_prof",
|
|
129
139
|
"export_speedscope",
|
|
@@ -143,9 +153,11 @@ __all__ = [
|
|
|
143
153
|
"plot_gantt",
|
|
144
154
|
"plot_perf_events",
|
|
145
155
|
"plot_rank_heatmap",
|
|
156
|
+
"plot_roofline",
|
|
146
157
|
"plot_scaling_efficiency",
|
|
147
158
|
"plot_speedup",
|
|
148
159
|
"plot_weak_scaling",
|
|
160
|
+
"plot_weak_scaling_efficiency",
|
|
149
161
|
"profile",
|
|
150
162
|
"profile_mpi4py",
|
|
151
163
|
"profile_mpi_comm",
|
|
@@ -168,6 +180,7 @@ def __getattr__(name: str) -> Any:
|
|
|
168
180
|
"""Load optional top-level helpers only when they are first used."""
|
|
169
181
|
if name in {
|
|
170
182
|
"collect_region_statistics",
|
|
183
|
+
"collect_roofline_points",
|
|
171
184
|
"plot_duration_timeseries",
|
|
172
185
|
"plot_durations",
|
|
173
186
|
"plot_flame",
|
|
@@ -175,15 +188,21 @@ def __getattr__(name: str) -> Any:
|
|
|
175
188
|
"plot_flame_graph",
|
|
176
189
|
"plot_gantt",
|
|
177
190
|
"plot_rank_heatmap",
|
|
191
|
+
"plot_roofline",
|
|
178
192
|
"plot_perf_events",
|
|
179
193
|
"plot_scaling_efficiency",
|
|
180
194
|
"plot_speedup",
|
|
181
195
|
"plot_weak_scaling",
|
|
196
|
+
"plot_weak_scaling_efficiency",
|
|
182
197
|
"write_region_statistics_json",
|
|
183
198
|
}:
|
|
184
199
|
from scope_profiler import plotting_scripts
|
|
185
200
|
|
|
186
201
|
return getattr(plotting_scripts, name)
|
|
202
|
+
if name == "export_flamegraph_svg":
|
|
203
|
+
from scope_profiler.prof_export import export_flamegraph_svg
|
|
204
|
+
|
|
205
|
+
return export_flamegraph_svg
|
|
187
206
|
if name == "export_prof":
|
|
188
207
|
from scope_profiler.prof_export import export_prof
|
|
189
208
|
|