MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / hasNativeStack

Function hasNativeStack

src/profiler.cpp:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88static inline int hasNativeStack(EventType event_type) {
89 const int events_with_native_stack =
90 (1 << PERF_SAMPLE) |
91 (1 << EXECUTION_SAMPLE) |
92 (1 << WALL_CLOCK_SAMPLE) |
93 (1 << NATIVE_LOCK_SAMPLE) |
94 (1 << MALLOC_SAMPLE) |
95 (1 << ALLOC_SAMPLE) |
96 (1 << ALLOC_OUTSIDE_TLAB);
97 return (1 << event_type) & events_with_native_stack;
98}
99
100static inline int makeFrame(ASGCT_CallFrame* frames, jint type, jmethodID id) {
101 frames[0].bci = type;

Callers 1

recordSampleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected