| 742 | |
| 743 | |
| 744 | void 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 | /** |
nothing calls this directly
no test coverage detected