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.
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/CMakeLists.txt +1 -1
- {scope_profiler-0.7.2/src/scope_profiler.egg-info → scope_profiler-0.7.4}/PKG-INFO +45 -37
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/README.md +34 -28
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/pyproject.toml +36 -15
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/__init__.py +3 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/__main__.py +250 -28
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +113 -35
- scope_profiler-0.7.4/src/scope_profiler/astro_site.py +1844 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/Makefile +2 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/example.c +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.h +39 -12
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.hpp +2 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_hdf5.h +7 -7
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_impl.h +322 -5
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/call_stack.py +9 -9
- scope_profiler-0.7.4/src/scope_profiler/catalogue.py +60 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/concurrency.py +17 -17
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/diff.py +55 -17
- scope_profiler-0.7.4/src/scope_profiler/fortran/scope_profiler.f90 +625 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/gpu_timing.py +8 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/h5reader.py +14 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/h5writer.py +24 -9
- scope_profiler-0.7.4/src/scope_profiler/html_report.py +2499 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/inspection.py +2 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/ipython_magics.py +11 -11
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/json_export.py +4 -4
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/likwid_data.py +2 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/server.py +11 -5
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/tools.py +18 -8
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/metadata.py +31 -13
- scope_profiler-0.7.4/src/scope_profiler/native_samples.py +282 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/native_trace.py +11 -11
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/_utils.py +19 -7
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/callgraph.py +3 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/duration_timeseries.py +1 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/durations.py +36 -25
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/flame.py +22 -8
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/gantt.py +62 -18
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/heatmap.py +4 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/histogram.py +2 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/imbalance.py +3 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/likwid.py +6 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/perf_events.py +3 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/roofline.py +12 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/scaling.py +7 -6
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/statistics.py +27 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/post_processing.py +17 -8
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/prof_export.py +3 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/profile_config.py +72 -23
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/profile_io.py +2 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/profile_manager.py +242 -51
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/region.py +3 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/region_profiler.py +16 -8
- scope_profiler-0.7.4/src/scope_profiler/report_data.py +973 -0
- scope_profiler-0.7.4/src/scope_profiler/report_model.py +1275 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/results.py +21 -5
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/speedscope_export.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/summary.py +161 -61
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/check_mpi_launch.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/examples_pylikwid.py +1 -1
- scope_profiler-0.7.4/src/scope_profiler/tests/report_profiles.py +60 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_app.py +1 -1
- scope_profiler-0.7.4/src/scope_profiler/tests/test_astro_site.py +1160 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_async_profiling.py +9 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_c_api.py +4 -4
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_c_hdf5_output.py +6 -6
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_diff.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_documented_formats.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_fortran_api.py +406 -2
- scope_profiler-0.7.4/src/scope_profiler/tests/test_html_report.py +2668 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_ipython_magics.py +2 -6
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_likwid_data.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mcp_server.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mcp_tools.py +41 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_metadata.py +158 -17
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mixed_language.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_mpi.py +9 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_multiprocessing.py +3 -3
- scope_profiler-0.7.4/src/scope_profiler/tests/test_native_samples.py +207 -0
- scope_profiler-0.7.4/src/scope_profiler/tests/test_opt_in_tags.py +197 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_output_size.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_overhead.py +4 -4
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_overhead_io.py +20 -6
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_post_processing.py +184 -4
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_prof_export.py +3 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_region_source.py +8 -3
- scope_profiler-0.7.4/src/scope_profiler/tests/test_report_model.py +351 -0
- scope_profiler-0.7.4/src/scope_profiler/tests/test_report_performance.py +103 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_results_api.py +115 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_set_version.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_speedscope_export.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_threading.py +3 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_call_stack_properties.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_callgraph_plot.py +2 -1
- scope_profiler-0.7.4/src/scope_profiler/tests/unit/test_gpu_summary.py +152 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_gpu_timing.py +20 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5_failure_paths.py +3 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5_roundtrip.py +2 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_h5writer.py +2 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_lazy_config.py +2 -2
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_native_hdf5_inputs.py +4 -4
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_native_trace_versions.py +3 -3
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_payload_collection.py +1 -1
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_region_variants.py +67 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_summary_rendering.py +18 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4/src/scope_profiler.egg-info}/PKG-INFO +45 -37
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/SOURCES.txt +12 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/requires.txt +11 -8
- scope_profiler-0.7.2/src/scope_profiler/fortran/scope_profiler.f90 +0 -362
- scope_profiler-0.7.2/src/scope_profiler/html_report.py +0 -1423
- scope_profiler-0.7.2/src/scope_profiler/tests/test_html_report.py +0 -835
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/LICENSE.txt +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/MANIFEST.in +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/cmake/scope-profilerConfig.cmake.in +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/CMakeLists.txt +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/main.cpp +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/mpi.cpp +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/cmake/native.c +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/ex_mpi_numpy_wrappers.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/ex_mpi_profiling_options.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/examples/ex_mpi_wrappers.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/setup.cfg +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/_assets/__init__.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/benchmark.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler.c +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/c/scope_profiler_mpi.hpp +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/chrome_trace_export.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/fortran/Makefile +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/fortran/example.f90 +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/h5schema.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/line_profile_cli.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/__init__.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mcp_server/__main__.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/memray.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mpi_launch.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mpi_region.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/mpi_wrappers.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/perf_events.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/__init__.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/plotting_scripts/timeline.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/py.typed +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/pytest_plugin.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/__init__.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/check_parallel_hdf5.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/conftest.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/examples.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/README.md +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-1.h5.gz.b64 +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-2.h5.gz.b64 +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-3.h5.gz.b64 +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/json-v1.json +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/native-v1.spt.b64 +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/fixtures/compatibility/native-v2.spt.b64 +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/pylikwid_readme.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_aggregation.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_api_shortcuts.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_benchmark.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_buffer_growth.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_chrome_trace_export.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_compatibility_fixtures.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_in_memory_results.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_inspection.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_json_export.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_label.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_line_profile_cli.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_main_cli.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_memray.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_multiple_sessions.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_perf_events.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_profile_config_toml.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_profiling_options.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_pytest_plugin.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_readme.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_repeated_finalize.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_storage_size.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_summary_likwid.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/test_tui.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/__init__.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_call_stack.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_concurrency.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_likwid_child_env.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_merge_results.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_mpi_launch.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_mpi_wrappers.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tests/unit/test_recursive_tracer.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler/tui.py +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/dependency_links.txt +0 -0
- {scope_profiler-0.7.2 → scope_profiler-0.7.4}/src/scope_profiler.egg-info/entry_points.txt +0 -0
- {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
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scope-profiler
|
|
3
|
-
Version: 0.7.
|
|
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:
|
|
66
|
-
Requires-Dist:
|
|
67
|
-
Requires-Dist:
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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/
|
|
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
|
|
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
|
|
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/
|
|
205
|
-
- [CLI reference](https://max-models.github.io/scope-profiler/cli
|
|
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/
|
|
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
|
|
210
|
-
- [MPI](https://max-models.github.io/scope-profiler/guide/mpi
|
|
211
|
-
[C](https://max-models.github.io/scope-profiler/guide/c
|
|
212
|
-
[Fortran](https://max-models.github.io/scope-profiler/guide/fortran
|
|
213
|
-
- [LIKWID](https://max-models.github.io/scope-profiler/guide/likwid
|
|
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/
|
|
216
|
-
and [MCP](https://max-models.github.io/scope-profiler/guide/mcp
|
|
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/
|
|
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
|
|
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
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
|
|
235
|
-
make -
|
|
240
|
+
make docs-install
|
|
241
|
+
make docs-build
|
|
236
242
|
```
|
|
237
243
|
|
|
238
|
-
This
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
workflow
|
|
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
|
|
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
|
|
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
|
|
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/
|
|
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
|
|
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
|
|
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/
|
|
124
|
-
- [CLI reference](https://max-models.github.io/scope-profiler/cli
|
|
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/
|
|
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
|
|
129
|
-
- [MPI](https://max-models.github.io/scope-profiler/guide/mpi
|
|
130
|
-
[C](https://max-models.github.io/scope-profiler/guide/c
|
|
131
|
-
[Fortran](https://max-models.github.io/scope-profiler/guide/fortran
|
|
132
|
-
- [LIKWID](https://max-models.github.io/scope-profiler/guide/likwid
|
|
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/
|
|
135
|
-
and [MCP](https://max-models.github.io/scope-profiler/guide/mcp
|
|
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/
|
|
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
|
|
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
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
|
|
154
|
-
make -
|
|
157
|
+
make docs-install
|
|
158
|
+
make docs-build
|
|
155
159
|
```
|
|
156
160
|
|
|
157
|
-
This
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
workflow
|
|
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.
|
|
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
|
-
|
|
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
|
-
#
|
|
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
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
115
|
+
"griffe",
|
|
116
|
+
"ipykernel",
|
|
117
|
+
"nbclient",
|
|
118
|
+
"nbformat",
|
|
109
119
|
"pre-commit",
|
|
110
120
|
"pyproject-fmt",
|
|
111
|
-
"
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
"
|
|
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
|
|
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",
|