mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-21011 Debug print detail size of brk files.
To print it, $ CXXFLAGS="-DRBBI_DEBUG" ./runConfigureICU --enable-debug --disable-release Linux/gcc --disable-layoutex $ make clean $ U_RBBIDEBUG="size" make
This commit is contained in:
parent
d6eabe4155
commit
9aed97703e
1 changed files with 13 additions and 0 deletions
|
@ -161,6 +161,19 @@ RBBIDataHeader *RBBIRuleBuilder::flattenData() {
|
|||
+ reverseTableSize
|
||||
+ statusTableSize + trieSize + rulesSize;
|
||||
|
||||
#ifdef RBBI_DEBUG
|
||||
if (fDebugEnv && uprv_strstr(fDebugEnv, "size")) {
|
||||
RBBIDebugPrintf("Header Size: %8d\n", headerSize);
|
||||
RBBIDebugPrintf("Forward Table Size: %8d\n", forwardTableSize);
|
||||
RBBIDebugPrintf("Reverse Table Size: %8d\n", reverseTableSize);
|
||||
RBBIDebugPrintf("Trie Size: %8d\n", trieSize);
|
||||
RBBIDebugPrintf("Status Table Size: %8d\n", statusTableSize);
|
||||
RBBIDebugPrintf("Rules Size: %8d\n", rulesSize);
|
||||
RBBIDebugPrintf("-----------------------------\n");
|
||||
RBBIDebugPrintf("Total Size: %8d\n", totalSize);
|
||||
}
|
||||
#endif
|
||||
|
||||
RBBIDataHeader *data = (RBBIDataHeader *)uprv_malloc(totalSize);
|
||||
if (data == NULL) {
|
||||
*fStatus = U_MEMORY_ALLOCATION_ERROR;
|
||||
|
|
Loading…
Add table
Reference in a new issue