MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / Profiler

Method Profiler

src/hx/Profiler.cpp:41–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39public:
40
41 Profiler(const String &inDumpFile)
42 : mT0(0)
43 {
44 mDumpFile = inDumpFile;
45
46 // When a profiler exists, the profiler thread needs to exist
47
48 std::lock_guard<std::mutex> lock(gThreadMutex);
49
50 gThreadRefCount += 1;
51
52 if (gThreadRefCount == 1) {
53 std::thread thread(ProfileMainLoop);
54 thread.detach();
55 }
56 }
57
58 ~Profiler()
59 {

Callers

nothing calls this directly

Calls 1

detachMethod · 0.45

Tested by

no test coverage detected