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

Function testFlow1

test/test/nonjava/non_java_app.cpp:215–229  ·  view source on GitHub ↗

Here is the flow of the test: 1. Load the profiler 2. Load the JVM library 3. Start the JVM 4. Start the profiler 5. Execute the JVM task 6. Stop the profiler 7. Stop the JVM Expected output: The profiler should be able to profile the JVM task. Explanation: The JVM is loaded and started before the profiling session, so profiler correctly detects the JVM when the profiling session starts. */

Source from the content-addressed store, hash-verified

213so profiler correctly detects the JVM when the profiling session starts.
214*/
215void testFlow1(int argc, char** argv) {
216 loadProfiler();
217
218 loadJvmLib();
219
220 startJvm();
221
222 startProfiler();
223
224 executeJvmTask();
225
226 stopProfiler(argv[2]);
227
228 stopJvm();
229}
230
231/*
232Here is the flow of the test:

Callers 1

mainFunction · 0.85

Calls 7

loadProfilerFunction · 0.85
loadJvmLibFunction · 0.85
startJvmFunction · 0.85
startProfilerFunction · 0.85
executeJvmTaskFunction · 0.85
stopProfilerFunction · 0.85
stopJvmFunction · 0.85

Tested by

no test coverage detected