MCPcopy Index your code
hub / github.com/EmbarkStudios/superluminal-perf-rs

github.com/EmbarkStudios/superluminal-perf-rs @v3.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.0.0 ↗ · + Follow
36 symbols 65 edges 8 files 16 documented · 44%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🔆 superluminal-perf-rs

Embark Embark Crates.io Docs dependency status Build Status

Superluminal Performance profiler Rust API for adding user events to captures.

How to use

In Cargo.toml add:

[dependencies]
superluminal-perf = "0.2.0"

Example usage:

superluminal_perf::begin_event("my-event");
calc();
superluminal_perf::end_event();

superluminal_perf::begin_event("my-event2");
calc2();
superluminal_perf::end_event();

On non-Windows platforms the events will be compiled out.

Contributing

Contributor Covenant

We welcome community contributions to this project.

Please read our Contributor Guide for more information on how to get started.

License

Licensed under either of

at your option.

Note that the Superluminal Performance C API, that this crate uses and embeds, is licensed under BSD.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Core symbols most depended-on inside this repo

begin_event
called by 5
src/lib.rs
end_event
called by 5
src/lib.rs
PerformanceAPI_BeginEvent
called by 3
sys/external/include/Superluminal/PerformanceAPI_capi.h
PerformanceAPI_BeginEvent_N
called by 3
sys/external/include/Superluminal/PerformanceAPI_capi.h
PerformanceAPI_BeginEvent_Wide
called by 3
sys/external/include/Superluminal/PerformanceAPI_capi.h
PerformanceAPI_EndEvent
called by 2
sys/external/include/Superluminal/PerformanceAPI_capi.h
set_current_thread_name
called by 2
src/lib.rs
PerformanceAPI_SetCurrentThreadName
called by 1
sys/external/include/Superluminal/PerformanceAPI_capi.h

Shape

Function 34
Class 2

Languages

Rust53%
C++47%

Modules by API surface

sys/external/include/Superluminal/PerformanceAPI_capi.h11 symbols
src/lib.rs10 symbols
sys/external/include/Superluminal/PerformanceAPI.h4 symbols
examples/basic.rs4 symbols
sys/external/include/Superluminal/PerformanceAPI_loader.h2 symbols
sys/build.rs2 symbols
src/test.rs2 symbols
sys/src/lib.rs1 symbols

For agents

$ claude mcp add superluminal-perf-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page