scope-profiler 0.6.1__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.1 → scope_profiler-0.6.2}/CMakeLists.txt +1 -1
- {scope_profiler-0.6.1/src/scope_profiler.egg-info → scope_profiler-0.6.2}/PKG-INFO +1 -1
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/pyproject.toml +1 -1
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/profile_manager.py +5 -2
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_lazy_config.py +24 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2/src/scope_profiler.egg-info}/PKG-INFO +1 -1
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/LICENSE.txt +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/MANIFEST.in +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/README.md +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/cmake/scope-profilerConfig.cmake.in +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/examples/cmake/CMakeLists.txt +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/examples/cmake/main.cpp +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/examples/cmake/mpi.cpp +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/examples/cmake/native.c +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/examples/ex_mpi_numpy_wrappers.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/examples/ex_mpi_profiling_options.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/examples/ex_mpi_wrappers.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/setup.cfg +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/__init__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/__main__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/_assets/__init__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/benchmark.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/Makefile +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/example.c +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler.c +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler.h +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler.hpp +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler_hdf5.h +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler_impl.h +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/c/scope_profiler_mpi.hpp +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/call_stack.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/chrome_trace_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/concurrency.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/diff.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/fortran/Makefile +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/fortran/example.f90 +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/fortran/scope_profiler.f90 +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/gpu_timing.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/h5reader.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/h5schema.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/h5writer.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/html_report.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/inspection.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/ipython_magics.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/json_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/likwid_data.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/line_profile_cli.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/__init__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/__main__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/server.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/mcp_server/tools.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/memray.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/metadata.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/mpi_launch.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/mpi_region.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/mpi_wrappers.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/native_trace.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/perf_events.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/__init__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/_utils.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/callgraph.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/duration_timeseries.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/durations.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/flame.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/gantt.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/heatmap.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/histogram.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/imbalance.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/likwid.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/perf_events.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/roofline.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/scaling.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/statistics.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/timeline.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/post_processing.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/prof_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/profile_config.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/profile_io.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/py.typed +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/pytest_plugin.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/region.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/region_profiler.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/results.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/speedscope_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/summary.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/__init__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/check_mpi_launch.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/check_parallel_hdf5.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/examples.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/examples_pylikwid.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/README.md +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-1.h5.gz.b64 +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-2.h5.gz.b64 +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-3.h5.gz.b64 +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/json-v1.json +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/native-v1.spt.b64 +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/fixtures/compatibility/native-v2.spt.b64 +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/pylikwid_readme.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_aggregation.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_api_shortcuts.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_app.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_async_profiling.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_benchmark.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_buffer_growth.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_c_api.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_c_hdf5_output.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_chrome_trace_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_compatibility_fixtures.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_diff.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_documented_formats.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_fortran_api.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_html_report.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_in_memory_results.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_inspection.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_ipython_magics.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_json_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_label.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_likwid_data.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_line_profile_cli.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_main_cli.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mcp_server.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mcp_tools.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_memray.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_metadata.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mixed_language.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mpi.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_multiple_sessions.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_multiprocessing.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_output_size.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_overhead.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_overhead_io.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_perf_events.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_post_processing.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_prof_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_profile_config_toml.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_profiling_options.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_pytest_plugin.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_readme.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_region_source.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_repeated_finalize.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_results_api.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_set_version.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_speedscope_export.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_storage_size.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_summary_likwid.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_threading.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_tui.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/__init__.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_call_stack.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_call_stack_properties.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_callgraph_plot.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_concurrency.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_gpu_timing.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5_failure_paths.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5_roundtrip.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5writer.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_likwid_child_env.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_merge_results.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_mpi_launch.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_mpi_wrappers.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_native_hdf5_inputs.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_native_trace_versions.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_payload_collection.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_recursive_tracer.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_region_variants.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tui.py +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/SOURCES.txt +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/dependency_links.txt +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/entry_points.txt +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/requires.txt +0 -0
- {scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/top_level.txt +0 -0
|
@@ -2089,6 +2089,11 @@ class ProfileManager:
|
|
|
2089
2089
|
MPI job -- fatal in a process forked from a rank, which is exactly
|
|
2090
2090
|
what the LIKWID counter read-back does.
|
|
2091
2091
|
|
|
2092
|
+
Resolving defaults is not itself setup. Regions remain disabled until
|
|
2093
|
+
:meth:`setup` (directly or through :meth:`session`) installs a config
|
|
2094
|
+
with :meth:`set_config`. This lets applications declare decorators at
|
|
2095
|
+
import time without accidentally starting a profiling run.
|
|
2096
|
+
|
|
2092
2097
|
Returns
|
|
2093
2098
|
-------
|
|
2094
2099
|
ProfilingConfig
|
|
@@ -2096,8 +2101,6 @@ class ProfileManager:
|
|
|
2096
2101
|
"""
|
|
2097
2102
|
if cls._config is None:
|
|
2098
2103
|
cls._config = ProfilingConfig()
|
|
2099
|
-
# Direct attribute read below, not get_config(): _config is set.
|
|
2100
|
-
cls._update_region_cls()
|
|
2101
2104
|
return cls._config
|
|
2102
2105
|
|
|
2103
2106
|
@classmethod
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_lazy_config.py
RENAMED
|
@@ -75,6 +75,30 @@ def test_get_config_creates_one_and_keeps_it():
|
|
|
75
75
|
assert ProfileManager._config is None
|
|
76
76
|
|
|
77
77
|
|
|
78
|
+
def test_instrumentation_stays_disabled_until_setup_is_called():
|
|
79
|
+
"""Declaring and running instrumented code does not implicitly opt in."""
|
|
80
|
+
from scope_profiler.region_profiler import DisabledProfileRegion
|
|
81
|
+
|
|
82
|
+
ProfileManager._reset()
|
|
83
|
+
try:
|
|
84
|
+
|
|
85
|
+
@ProfileManager.profile("main")
|
|
86
|
+
def main():
|
|
87
|
+
for _ in range(10):
|
|
88
|
+
with ProfileManager.region("iteration"):
|
|
89
|
+
pass
|
|
90
|
+
|
|
91
|
+
main()
|
|
92
|
+
|
|
93
|
+
regions = ProfileManager.get_all_regions()
|
|
94
|
+
assert isinstance(regions["main"], DisabledProfileRegion)
|
|
95
|
+
assert isinstance(regions["iteration"], DisabledProfileRegion)
|
|
96
|
+
assert regions["main"].num_calls == 0
|
|
97
|
+
assert regions["iteration"].num_calls == 0
|
|
98
|
+
finally:
|
|
99
|
+
ProfileManager._reset()
|
|
100
|
+
|
|
101
|
+
|
|
78
102
|
def test_reset_restores_the_state_a_fresh_import_leaves():
|
|
79
103
|
"""A reset is indistinguishable from never having configured anything."""
|
|
80
104
|
from scope_profiler.region_profiler import DisabledProfileRegion
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/callgraph.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/durations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/heatmap.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/histogram.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/imbalance.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/perf_events.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/roofline.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/scaling.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/statistics.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/plotting_scripts/timeline.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/check_parallel_hdf5.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_api_shortcuts.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_async_profiling.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_buffer_growth.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_c_hdf5_output.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_chrome_trace_export.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_documented_formats.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_in_memory_results.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_ipython_magics.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_line_profile_cli.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_mixed_language.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_multiple_sessions.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_multiprocessing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_post_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_profile_config_toml.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_profiling_options.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_pytest_plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_region_source.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_repeated_finalize.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_speedscope_export.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/test_summary_likwid.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_call_stack.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_callgraph_plot.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_concurrency.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_gpu_timing.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5_failure_paths.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5_roundtrip.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_h5writer.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_likwid_child_env.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_merge_results.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_mpi_launch.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_mpi_wrappers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_recursive_tracer.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler/tests/unit/test_region_variants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.1 → scope_profiler-0.6.2}/src/scope_profiler.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|