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

Function nativeBurnCpu

test/test/nonjava/non_java_app.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41#include <math.h>
42
43double nativeBurnCpu() {
44 int i = 0;
45 double result = 0;
46
47 while (i < 100000000) {
48 i++;
49 result += sqrt(i);
50 result += pow(i, sqrt(i));
51 }
52 return result;
53}
54
55void loadProfiler() {
56 void* lib = dlopen(profiler_lib_path, RTLD_NOW | RTLD_GLOBAL);

Callers 1

testFlow3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected