MCPcopy Create free account
hub / github.com/cpputest/cpputest / getTotalLeaks

Method getTotalLeaks

src/CppUTest/MemoryLeakDetector.cpp:376–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374
375
376size_t MemoryLeakDetectorList::getTotalLeaks(MemLeakPeriod period)
377{
378 size_t total_leaks = 0;
379 for (MemoryLeakDetectorNode* node = head_; node; node = node->next_) {
380 if (isInPeriod(node, period)) total_leaks++;
381 }
382 return total_leaks;
383}
384
385/////////////////////////////////////////////////////////////
386

Callers 1

totalMemoryLeaksMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected