MCPcopy Create free account
hub / github.com/beefytech/Beef / AddTrace

Function AddTrace

BeefRT/gperftools/src/tests/stack_trace_table_test.cc:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23static void AddTrace(tcmalloc::StackTraceTable* table,
24 const tcmalloc::StackTrace& t) {
25 // Normally we'd need this lock, but since the test is single-threaded
26 // we don't. I comment it out on windows because the DLL-decl thing
27 // is really annoying in this case.
28#ifndef _MSC_VER
29 SpinLockHolder h(tcmalloc::Static::pageheap_lock());
30#endif
31 table->AddTrace(t);
32}
33
34int main(int argc, char **argv) {
35 tcmalloc::StackTraceTable table;

Callers 2

mainFunction · 0.70
StackTraceTableMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected