scope-profiler 0.6.2__tar.gz → 0.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/CMakeLists.txt +1 -1
- {scope_profiler-0.6.2/src/scope_profiler.egg-info → scope_profiler-0.6.3}/PKG-INFO +1 -1
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/pyproject.toml +1 -1
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/profile_manager.py +16 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_lazy_config.py +9 -2
- {scope_profiler-0.6.2 → scope_profiler-0.6.3/src/scope_profiler.egg-info}/PKG-INFO +1 -1
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/LICENSE.txt +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/MANIFEST.in +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/README.md +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/cmake/scope-profilerConfig.cmake.in +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/examples/cmake/CMakeLists.txt +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/examples/cmake/main.cpp +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/examples/cmake/mpi.cpp +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/examples/cmake/native.c +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/examples/ex_mpi_numpy_wrappers.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/examples/ex_mpi_profiling_options.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/examples/ex_mpi_wrappers.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/setup.cfg +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/__init__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/__main__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/_assets/__init__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/_assets/scope-profiler-plotly-0.2.0.js +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/benchmark.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/Makefile +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/example.c +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/scope_profiler.c +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/scope_profiler.h +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/scope_profiler.hpp +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/scope_profiler_hdf5.h +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/scope_profiler_impl.h +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/c/scope_profiler_mpi.hpp +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/call_stack.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/chrome_trace_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/concurrency.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/diff.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/fortran/Makefile +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/fortran/example.f90 +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/fortran/scope_profiler.f90 +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/gpu_timing.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/h5reader.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/h5schema.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/h5writer.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/html_report.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/inspection.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/ipython_magics.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/json_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/likwid_data.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/line_profile_cli.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/mcp_server/__init__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/mcp_server/__main__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/mcp_server/server.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/mcp_server/tools.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/memray.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/metadata.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/mpi_launch.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/mpi_region.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/mpi_wrappers.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/native_trace.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/perf_events.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/__init__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/_utils.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/callgraph.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/duration_timeseries.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/durations.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/flame.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/gantt.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/heatmap.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/histogram.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/imbalance.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/likwid.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/perf_events.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/roofline.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/scaling.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/statistics.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/timeline.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/post_processing.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/prof_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/profile_config.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/profile_io.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/py.typed +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/pytest_plugin.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/region.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/region_profiler.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/results.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/speedscope_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/summary.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/__init__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/check_mpi_launch.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/check_parallel_hdf5.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/examples.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/examples_pylikwid.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/fixtures/compatibility/README.md +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-1.h5.gz.b64 +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-2.h5.gz.b64 +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/fixtures/compatibility/hdf5-schema-3.h5.gz.b64 +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/fixtures/compatibility/json-v1.json +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/fixtures/compatibility/native-v1.spt.b64 +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/fixtures/compatibility/native-v2.spt.b64 +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/pylikwid_readme.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_aggregation.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_api_shortcuts.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_app.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_async_profiling.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_benchmark.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_buffer_growth.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_c_api.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_c_hdf5_output.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_chrome_trace_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_compatibility_fixtures.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_diff.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_documented_formats.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_fortran_api.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_html_report.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_in_memory_results.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_inspection.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_ipython_magics.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_json_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_label.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_likwid_data.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_line_profile_cli.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_main_cli.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_mcp_server.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_mcp_tools.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_memray.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_metadata.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_mixed_language.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_mpi.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_multiple_sessions.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_multiprocessing.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_output_size.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_overhead.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_overhead_io.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_perf_events.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_post_processing.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_prof_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_profile_config_toml.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_profiling_options.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_pytest_plugin.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_readme.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_region_source.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_repeated_finalize.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_results_api.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_set_version.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_speedscope_export.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_storage_size.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_summary_likwid.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_threading.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_tui.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/__init__.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_call_stack.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_call_stack_properties.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_callgraph_plot.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_concurrency.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_gpu_timing.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_h5_failure_paths.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_h5_roundtrip.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_h5writer.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_likwid_child_env.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_merge_results.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_mpi_launch.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_mpi_wrappers.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_native_hdf5_inputs.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_native_trace_versions.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_payload_collection.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_recursive_tracer.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_region_variants.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tui.py +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler.egg-info/SOURCES.txt +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler.egg-info/dependency_links.txt +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler.egg-info/entry_points.txt +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler.egg-info/requires.txt +0 -0
- {scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler.egg-info/top_level.txt +0 -0
|
@@ -1459,6 +1459,22 @@ class ProfileManager:
|
|
|
1459
1459
|
nothing, so the script above needs no rank guard. See
|
|
1460
1460
|
:attr:`~scope_profiler.results.ProfilingResults.is_root`.
|
|
1461
1461
|
"""
|
|
1462
|
+
# A lazily resolved default config is not a profiling run. In
|
|
1463
|
+
# particular, decorators call get_config() while they are declared,
|
|
1464
|
+
# so the presence of a config alone cannot be used to decide whether
|
|
1465
|
+
# finalize() should create an output file. setup()/session() replace
|
|
1466
|
+
# the disabled region strategy through set_config().
|
|
1467
|
+
never_activated = cls._region_cls is DisabledProfileRegion and (
|
|
1468
|
+
cls._config is None or not cls._config.deactivate_profiling
|
|
1469
|
+
)
|
|
1470
|
+
if never_activated:
|
|
1471
|
+
if return_results:
|
|
1472
|
+
from scope_profiler.results import ProfilingResults
|
|
1473
|
+
|
|
1474
|
+
file_path = cls._config.file_path if cls._config is not None else ""
|
|
1475
|
+
return ProfilingResults({}, file_path=file_path)
|
|
1476
|
+
return None
|
|
1477
|
+
|
|
1462
1478
|
config = cls.get_config()
|
|
1463
1479
|
|
|
1464
1480
|
# Read on the same clock as start_time_ns, and as the very first
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_lazy_config.py
RENAMED
|
@@ -10,6 +10,7 @@ import.
|
|
|
10
10
|
|
|
11
11
|
import subprocess
|
|
12
12
|
import sys
|
|
13
|
+
from pathlib import Path
|
|
13
14
|
|
|
14
15
|
from scope_profiler import ProfileManager
|
|
15
16
|
from scope_profiler.mpi_launch import LAUNCHER_ENV_VARS
|
|
@@ -75,10 +76,11 @@ def test_get_config_creates_one_and_keeps_it():
|
|
|
75
76
|
assert ProfileManager._config is None
|
|
76
77
|
|
|
77
78
|
|
|
78
|
-
def test_instrumentation_stays_disabled_until_setup_is_called():
|
|
79
|
-
"""
|
|
79
|
+
def test_instrumentation_stays_disabled_until_setup_is_called(tmp_path, monkeypatch):
|
|
80
|
+
"""Implicit instrumentation records nothing and creates no output file."""
|
|
80
81
|
from scope_profiler.region_profiler import DisabledProfileRegion
|
|
81
82
|
|
|
83
|
+
monkeypatch.chdir(tmp_path)
|
|
82
84
|
ProfileManager._reset()
|
|
83
85
|
try:
|
|
84
86
|
|
|
@@ -95,6 +97,11 @@ def test_instrumentation_stays_disabled_until_setup_is_called():
|
|
|
95
97
|
assert isinstance(regions["iteration"], DisabledProfileRegion)
|
|
96
98
|
assert regions["main"].num_calls == 0
|
|
97
99
|
assert regions["iteration"].num_calls == 0
|
|
100
|
+
|
|
101
|
+
output_path = Path(ProfileManager.get_config().file_path)
|
|
102
|
+
assert not output_path.exists()
|
|
103
|
+
ProfileManager.finalize(verbose=False)
|
|
104
|
+
assert not output_path.exists()
|
|
98
105
|
finally:
|
|
99
106
|
ProfileManager._reset()
|
|
100
107
|
|
|
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.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/callgraph.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/durations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/heatmap.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/histogram.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/imbalance.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/perf_events.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/roofline.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/scaling.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/plotting_scripts/statistics.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/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.2 → scope_profiler-0.6.3}/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.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_api_shortcuts.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_async_profiling.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_buffer_growth.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_c_hdf5_output.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_chrome_trace_export.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_documented_formats.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_in_memory_results.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/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.2 → scope_profiler-0.6.3}/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.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_mixed_language.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_multiple_sessions.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/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.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_post_processing.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_profile_config_toml.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_profiling_options.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_pytest_plugin.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_region_source.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_repeated_finalize.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/test_speedscope_export.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/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.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_call_stack.py
RENAMED
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_callgraph_plot.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_concurrency.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_gpu_timing.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_h5_failure_paths.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_h5_roundtrip.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_h5writer.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_likwid_child_env.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_merge_results.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_mpi_launch.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/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.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_recursive_tracer.py
RENAMED
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler/tests/unit/test_region_variants.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{scope_profiler-0.6.2 → scope_profiler-0.6.3}/src/scope_profiler.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|