MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE gds_alloc_report

Function API_ROUTINE gds_alloc_report

src/yvalve/gds.cpp:744–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742
743
744void API_ROUTINE gds_alloc_report(ULONG flags, const char* filter_filename, int /*lineno*/)
745{
746/**************************************
747 *
748 * g d s _ a l l o c _ r e p o r t
749 *
750 **************************************
751 *
752 * Functional description
753 * Print buffers that might be memory leaks.
754 * Or that might have been clobbered.
755 *
756 **************************************/
757// Skidder: Calls to this function must be replaced with MemoryPool::print_contents
758 Firebird::PathName report_name = fb_utils::getPrefix(Firebird::IConfigManager::DIR_LOG, "fbsrvreport.txt");
759 // Our new facilities don't expose flags for reporting.
760 const bool used_only = !(flags & ALLOC_verbose);
761 getDefaultMemoryPool()->print_contents(report_name.c_str(),
762 used_only ? MemoryPool::PRINT_USED_ONLY : 0, filter_filename);
763}
764
765
766/**

Callers

nothing calls this directly

Calls 4

getPrefixFunction · 0.85
getDefaultMemoryPoolFunction · 0.85
print_contentsMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected