pyroscope-io 1.2.4__tar.gz → 1.3.0__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.
- pyroscope_io-1.3.0/MANIFEST.in +13 -0
- {pyroscope_io-1.2.4/python/pyroscope_io.egg-info → pyroscope_io-1.3.0}/PKG-INFO +1 -1
- pyroscope_io-1.3.0/dd-trace-py/CMakeLists.txt +148 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/_threads.cpp +1308 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/clock.hpp +36 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/code_provenance.hpp +27 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/constants.hpp +30 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/ddup_interface.hpp +33 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/defer.hpp +42 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/libdatadog_helpers.hpp +173 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/native_call_tracker.hpp +46 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/profile.hpp +75 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/profile_borrow.hpp +29 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/profiler_state.hpp +44 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/profiler_stats.hpp +74 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/pymacro.hpp +11 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/python_helpers.hpp +91 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/sample.hpp +57 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/sample_manager.hpp +34 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/scope.hpp +428 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/static_sample_pool.hpp +24 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/types.hpp +58 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/uploader.hpp +88 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/include/uploader_builder.hpp +37 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/code_provenance.cpp +35 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/ddup_interface.cpp +142 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/libdatadog_helpers.cpp +31 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/native_call_tracker.cpp +67 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/profile.cpp +239 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/profile_borrow.cpp +50 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/profiler_state.cpp +16 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/profiler_stats.cpp +315 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/sample.cpp +835 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/sample_manager.cpp +59 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/static_sample_pool.cpp +50 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/uploader.cpp +215 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/src/uploader_builder.cpp +234 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/test/test_api.cpp +173 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/test/test_cleanup_race.cpp +226 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/test/test_forking.cpp +164 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/test/test_initialization.cpp +84 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/test/test_threading.cpp +83 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/dd_wrapper/test/test_utils.hpp +176 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling}/profiling_helpers/linetable_parser.h +27 -14
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/cache.h +81 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/config.h +9 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/cpython/tasks.h +509 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/danger.h +126 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/echion_sampler.h +219 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/errors.h +192 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/frame.h +94 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/greenlets.h +58 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/interp.h +34 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/long.h +38 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/mirrors.h +88 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/stack_chunk.h +56 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/stacks.h +109 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/state.h +22 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/strings.h +108 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/task_name.h +115 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/tasks.h +156 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/threads.h +149 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/timing.h +12 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/echion/echion/vm.h +137 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_common.h +78 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_frame_create.cpp +72 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_frame_read.cpp +55 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_greenlet.cpp +75 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_interp.cpp +36 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_long.cpp +38 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_mirrors.cpp +34 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_pyunicode.cpp +35 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_stacks.cpp +60 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_strings.cpp +42 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_task_unwind.cpp +47 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_tasks.cpp +43 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_thread_unwind.cpp +46 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_echion_thread_unwind_tasks.cpp +63 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/fuzz/fuzz_memory_image.h +91 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/include/constants.hpp +23 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/include/gc_frame_tracker.hpp +75 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/include/origin_task_links.hpp +68 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/include/sampler.hpp +230 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/include/span_links.hpp +87 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/include/stack_renderer.hpp +117 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/include/util/cast_to_pyfunc.hpp +11 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/danger.cc +407 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/frame.cc +301 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/greenlets.cc +44 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/interp.cc +50 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/long.cc +44 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/mirrors.cc +47 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/stack_chunk.cc +122 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/stacks.cc +164 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/strings.cc +79 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/tasks.cc +289 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/threads.cc +1045 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/echion/vm.cc +237 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/gc_frame_tracker.cpp +400 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/origin_task_links.cpp +89 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/sampler.cpp +1019 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/span_links.cpp +144 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/stack.cpp +1256 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/src/stack_renderer.cpp +305 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_alt_stack_ownership.cpp +127 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_embedded_fast_copy.cpp +14 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_frame_state_315.cpp +247 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_origin_task_links.cpp +67 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_sample_lifecycle.cpp +96 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_sampling_cycle_state.cpp +238 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_segv_chain.cpp +623 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_span_links.cpp +162 -0
- pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling/stack/test/test_task_traversal.cpp +196 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc.cpp +5 -5
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_frame.h +1 -1
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_heap.cpp +45 -22
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_tb.cpp +30 -9
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_tb.h +9 -5
- pyroscope_io-1.3.0/dd-trace-py/pyroscope/Pyroscope.h +222 -0
- pyroscope_io-1.3.0/dd-trace-py/pyroscope/stack_ffi.cpp +133 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/pyproject.toml +1 -1
- pyroscope_io-1.3.0/python/pyroscope/__init__.py +260 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0/python/pyroscope_io.egg-info}/PKG-INFO +1 -1
- pyroscope_io-1.3.0/python/pyroscope_io.egg-info/SOURCES.txt +170 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/Cargo.lock +2 -2
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/Cargo.toml +2 -6
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/build.rs +33 -31
- pyroscope_io-1.3.0/rust/include/pyroscope_ffi.h +64 -0
- pyroscope_io-1.3.0/rust/src/encode/interner.rs +144 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/encode/mod.rs +1 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/encode/pprof.rs +441 -137
- pyroscope_io-1.3.0/rust/src/ffi.rs +77 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/ffikit.rs +35 -15
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/lib.rs +50 -2
- pyroscope_io-1.3.0/rust/src/memory.rs +142 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/pyroscope.rs +17 -1
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/session.rs +10 -0
- pyroscope_io-1.3.0/rust/src/stack/faulthandler.rs +85 -0
- pyroscope_io-1.3.0/rust/src/stack/mod.rs +268 -0
- pyroscope_io-1.3.0/rust/src/stack/sampler.rs +76 -0
- pyroscope_io-1.3.0/rust/src/stack/sampler_tests.rs +4 -0
- pyroscope_io-1.3.0/rust/src/stack/tests.rs +201 -0
- pyroscope_io-1.3.0/rust/src/stack/threads.rs +47 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/setup.py +9 -6
- pyroscope_io-1.2.4/MANIFEST.in +0 -10
- pyroscope_io-1.2.4/cpp/CMakeLists.txt +0 -94
- pyroscope_io-1.2.4/cpp/Pyroscope.h +0 -113
- pyroscope_io-1.2.4/python/pyroscope/__init__.py +0 -120
- pyroscope_io-1.2.4/python/pyroscope_io.egg-info/SOURCES.txt +0 -52
- pyroscope_io-1.2.4/rust/include/pyroscope_ffi.h +0 -47
- pyroscope_io-1.2.4/rust/src/memory.rs +0 -183
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/LICENSE +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/README.md +0 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py}/BundleStaticLibrary.cmake +0 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling}/profiling_helpers/frame_accessors.h +0 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/internal/datadog/profiling}/profiling_helpers/version_compat.h +0 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_debug.h +2 -2
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_gc_guard.hpp +0 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_heap.h +2 -2
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_reentrant.cpp +0 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_memalloc_reentrant.h +0 -0
- {pyroscope_io-1.2.4/cpp → pyroscope_io-1.3.0/dd-trace-py/ddtrace/profiling/collector}/_pymacro.h +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/python/pyroscope_io/__init__.py +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/python/pyroscope_io.egg-info/dependency_links.txt +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/python/pyroscope_io.egg-info/top_level.txt +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/backend/backend.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/backend/mod.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/backend/ruleset.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/backend/tests.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/backend/types.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/encode/gen/google.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/encode/gen/mod.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/encode/gen/push.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/encode/gen/types.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/error.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/forksafety.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/pyspy_backend.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/rust/src/utils.rs +0 -0
- {pyroscope_io-1.2.4 → pyroscope_io-1.3.0}/setup.cfg +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
include rust/Cargo.toml
|
|
2
|
+
include rust/Cargo.lock
|
|
3
|
+
include rust/build.rs
|
|
4
|
+
recursive-include rust/src/ *.rs
|
|
5
|
+
include rust/include/pyroscope_ffi.h
|
|
6
|
+
include dd-trace-py/CMakeLists.txt
|
|
7
|
+
include dd-trace-py/BundleStaticLibrary.cmake
|
|
8
|
+
include dd-trace-py/pyroscope/Pyroscope.h
|
|
9
|
+
include dd-trace-py/pyroscope/stack_ffi.cpp
|
|
10
|
+
recursive-include dd-trace-py/ddtrace *.h
|
|
11
|
+
recursive-include dd-trace-py/ddtrace *.cpp
|
|
12
|
+
recursive-include dd-trace-py/ddtrace *.hpp
|
|
13
|
+
recursive-include dd-trace-py/ddtrace *.cc
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
cmake_minimum_required(VERSION 3.19)
|
|
2
|
+
include(CheckIPOSupported)
|
|
3
|
+
include(CheckSymbolExists)
|
|
4
|
+
include(FetchContent)
|
|
5
|
+
|
|
6
|
+
project(_memalloc)
|
|
7
|
+
|
|
8
|
+
set(CMAKE_CXX_STANDARD 20)
|
|
9
|
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
10
|
+
|
|
11
|
+
# Add compile options
|
|
12
|
+
add_compile_options(-fPIC -fvisibility=hidden -pthread -Wall -Wextra)
|
|
13
|
+
|
|
14
|
+
# Abseil: HeapMapType is backed by absl::flat_hash_map (Swiss Tables). absl is built as
|
|
15
|
+
# static libraries (no BUILD_SHARED_LIBS), position-independent so it can be merged into
|
|
16
|
+
# the final shared Python extension. Tag matches dd-trace-py's pinned version.
|
|
17
|
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
18
|
+
set(ABSL_PROPAGATE_CXX_STD ON CACHE BOOL "" FORCE)
|
|
19
|
+
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
|
|
20
|
+
set(ABSL_BUILD_TESTING OFF CACHE BOOL "" FORCE)
|
|
21
|
+
set(ABSL_USE_GOOGLETEST_HEAD OFF CACHE BOOL "" FORCE)
|
|
22
|
+
set(ABSL_ENABLE_INSTALL ON CACHE BOOL "" FORCE)
|
|
23
|
+
set(FETCHCONTENT_UPDATES_DISCONNECTED ON CACHE BOOL "" FORCE)
|
|
24
|
+
FetchContent_Declare(
|
|
25
|
+
absl
|
|
26
|
+
GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git
|
|
27
|
+
GIT_TAG 20250127.1
|
|
28
|
+
GIT_SHALLOW TRUE
|
|
29
|
+
GIT_PROGRESS TRUE)
|
|
30
|
+
FetchContent_MakeAvailable(absl)
|
|
31
|
+
|
|
32
|
+
# Find Python (be flexible about what's available in build environments)
|
|
33
|
+
find_package(Python3 COMPONENTS Interpreter Development)
|
|
34
|
+
|
|
35
|
+
# Make sure we have necessary Python variables
|
|
36
|
+
if (NOT Python3_INCLUDE_DIRS)
|
|
37
|
+
message(FATAL_ERROR "Python3_INCLUDE_DIRS not found")
|
|
38
|
+
endif ()
|
|
39
|
+
|
|
40
|
+
set(CMAKE_REQUIRED_INCLUDES ${Python3_INCLUDE_DIRS})
|
|
41
|
+
unset(PYROSCOPE_GIL_DISABLED CACHE)
|
|
42
|
+
check_symbol_exists(Py_GIL_DISABLED "Python.h" PYROSCOPE_GIL_DISABLED)
|
|
43
|
+
unset(CMAKE_REQUIRED_INCLUDES)
|
|
44
|
+
if (PYROSCOPE_GIL_DISABLED)
|
|
45
|
+
message(FATAL_ERROR "free-threaded CPython is unsupported: ${Python3_EXECUTABLE} defines Py_GIL_DISABLED. Build against a GIL-enabled interpreter.")
|
|
46
|
+
endif ()
|
|
47
|
+
|
|
48
|
+
message(STATUS "Python3_EXECUTABLE ${Python3_EXECUTABLE}")
|
|
49
|
+
message(STATUS "Python3_VERSION ${Python3_VERSION}")
|
|
50
|
+
message(STATUS "Python3_INCLUDE_DIRS ${Python3_INCLUDE_DIRS}")
|
|
51
|
+
|
|
52
|
+
# Python3::Python target might not exist in all build environments so we'll link using include dirs and let the linker
|
|
53
|
+
# find Python dynamically
|
|
54
|
+
if (NOT TARGET Python3::Python)
|
|
55
|
+
message(STATUS "Python3::Python target not found, using include dirs only")
|
|
56
|
+
endif ()
|
|
57
|
+
|
|
58
|
+
set(COLLECTOR_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ddtrace/profiling/collector)
|
|
59
|
+
set(PROFILING_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ddtrace/internal/datadog/profiling)
|
|
60
|
+
|
|
61
|
+
set(MEMALLOC_SOURCES
|
|
62
|
+
${COLLECTOR_DIR}/_memalloc.cpp
|
|
63
|
+
${COLLECTOR_DIR}/_memalloc_tb.cpp
|
|
64
|
+
${COLLECTOR_DIR}/_memalloc_heap.cpp
|
|
65
|
+
${COLLECTOR_DIR}/_memalloc_reentrant.cpp
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
set(STACK_SOURCES
|
|
69
|
+
${PROFILING_DIR}/dd_wrapper/src/profiler_state.cpp
|
|
70
|
+
${CMAKE_CURRENT_SOURCE_DIR}/pyroscope/stack_ffi.cpp
|
|
71
|
+
${PROFILING_DIR}/stack/src/echion/danger.cc
|
|
72
|
+
${PROFILING_DIR}/stack/src/echion/frame.cc
|
|
73
|
+
${PROFILING_DIR}/stack/src/echion/greenlets.cc
|
|
74
|
+
${PROFILING_DIR}/stack/src/echion/interp.cc
|
|
75
|
+
${PROFILING_DIR}/stack/src/echion/long.cc
|
|
76
|
+
${PROFILING_DIR}/stack/src/echion/mirrors.cc
|
|
77
|
+
${PROFILING_DIR}/stack/src/echion/stack_chunk.cc
|
|
78
|
+
${PROFILING_DIR}/stack/src/echion/stacks.cc
|
|
79
|
+
${PROFILING_DIR}/stack/src/echion/strings.cc
|
|
80
|
+
${PROFILING_DIR}/stack/src/echion/tasks.cc
|
|
81
|
+
${PROFILING_DIR}/stack/src/echion/threads.cc
|
|
82
|
+
${PROFILING_DIR}/stack/src/echion/vm.cc
|
|
83
|
+
${PROFILING_DIR}/stack/src/gc_frame_tracker.cpp
|
|
84
|
+
${PROFILING_DIR}/stack/src/origin_task_links.cpp
|
|
85
|
+
${PROFILING_DIR}/stack/src/sampler.cpp
|
|
86
|
+
${PROFILING_DIR}/stack/src/span_links.cpp
|
|
87
|
+
${PROFILING_DIR}/stack/src/stack_renderer.cpp
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
set(FULL_EXTENSION_NAME "datadog_mem_profiler")
|
|
91
|
+
|
|
92
|
+
add_library(pyroscope_common INTERFACE)
|
|
93
|
+
target_include_directories(pyroscope_common INTERFACE
|
|
94
|
+
${CMAKE_CURRENT_SOURCE_DIR}/pyroscope
|
|
95
|
+
${COLLECTOR_DIR}
|
|
96
|
+
${PROFILING_DIR}
|
|
97
|
+
${CMAKE_CURRENT_SOURCE_DIR}/../rust/include
|
|
98
|
+
)
|
|
99
|
+
target_include_directories(pyroscope_common SYSTEM INTERFACE ${Python3_INCLUDE_DIRS})
|
|
100
|
+
|
|
101
|
+
add_library(pyroscope_memalloc OBJECT ${MEMALLOC_SOURCES})
|
|
102
|
+
target_link_libraries(pyroscope_memalloc PRIVATE pyroscope_common absl::flat_hash_map)
|
|
103
|
+
|
|
104
|
+
add_library(pyroscope_stack OBJECT ${STACK_SOURCES})
|
|
105
|
+
target_link_libraries(pyroscope_stack PRIVATE pyroscope_common)
|
|
106
|
+
target_include_directories(pyroscope_stack PRIVATE ${PROFILING_DIR}/stack/include)
|
|
107
|
+
target_include_directories(pyroscope_stack PRIVATE ${PROFILING_DIR}/dd_wrapper/include)
|
|
108
|
+
target_include_directories(pyroscope_stack SYSTEM PRIVATE
|
|
109
|
+
${PROFILING_DIR}/stack/echion
|
|
110
|
+
)
|
|
111
|
+
target_compile_definitions(pyroscope_stack PRIVATE
|
|
112
|
+
$<IF:$<BOOL:${APPLE}>,PL_DARWIN,PL_LINUX>
|
|
113
|
+
)
|
|
114
|
+
target_compile_options(pyroscope_stack PRIVATE -Wshadow -Wnon-virtual-dtor -Wold-style-cast)
|
|
115
|
+
|
|
116
|
+
target_compile_options(pyroscope_memalloc PRIVATE -Werror)
|
|
117
|
+
target_compile_options(pyroscope_stack PRIVATE -Werror)
|
|
118
|
+
set_source_files_properties(${PROFILING_DIR}/stack/src/echion/vm.cc PROPERTIES COMPILE_OPTIONS -Wno-unused-function)
|
|
119
|
+
|
|
120
|
+
add_library(${FULL_EXTENSION_NAME} STATIC
|
|
121
|
+
$<TARGET_OBJECTS:pyroscope_memalloc>
|
|
122
|
+
$<TARGET_OBJECTS:pyroscope_stack>
|
|
123
|
+
)
|
|
124
|
+
set_target_properties(${FULL_EXTENSION_NAME} PROPERTIES LINKER_LANGUAGE CXX)
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
# Set properties to prevent CMake from adding any prefix or suffix
|
|
128
|
+
#set_target_properties(${FULL_EXTENSION_NAME} PROPERTIES PREFIX "" SUFFIX "")
|
|
129
|
+
|
|
130
|
+
# Set output directory if specified
|
|
131
|
+
if (DEFINED LIB_INSTALL_DIR)
|
|
132
|
+
set_target_properties(${FULL_EXTENSION_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${LIB_INSTALL_DIR})
|
|
133
|
+
endif ()
|
|
134
|
+
|
|
135
|
+
# Link libraries Python3::Python target might not exist in all build environments (e.g., manylinux) Python modules
|
|
136
|
+
# should use -undefined dynamic_lookup on macOS and not link to libpython on Linux
|
|
137
|
+
if (TARGET Python3::Python AND NOT APPLE)
|
|
138
|
+
target_link_libraries(${FULL_EXTENSION_NAME} PRIVATE Python3::Python)
|
|
139
|
+
endif ()
|
|
140
|
+
|
|
141
|
+
# Compile against absl::flat_hash_map (brings in include dirs and records absl as a link
|
|
142
|
+
# dependency). Since this is a STATIC library, the absl object code is not archived in here;
|
|
143
|
+
# we merge it explicitly via bundle_static_library below.
|
|
144
|
+
target_link_libraries(${FULL_EXTENSION_NAME} PRIVATE absl::flat_hash_map)
|
|
145
|
+
|
|
146
|
+
include(${CMAKE_CURRENT_SOURCE_DIR}/BundleStaticLibrary.cmake)
|
|
147
|
+
|
|
148
|
+
bundle_static_library(${FULL_EXTENSION_NAME} ${FULL_EXTENSION_NAME}_bundled)
|