MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / ~ProfileScope

Method ~ProfileScope

src/profile.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 ProfileScope(std::string(name)) {}
29
30ProfileScope::~ProfileScope() {
31 double end = omp_get_wtime();
32 double duration = end - _start;
33 if (_profile_enabled) {
34 std::string key = "";
35 for (const auto& scope : _profile_scopes) {
36 key += scope + ".";
37 }
38 _profile_times[key] += duration;
39 }
40 _profile_scopes.pop_back();
41}
42#else
43ProfileScope::ProfileScope(std::string name) {}
44ProfileScope::ProfileScope(const char* name) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected