Changeset 3680 for trunk/src/kmk/dir-nt-bird.c
- Timestamp:
- Aug 13, 2025, 1:32:04 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/dir-nt-bird.c
r3359 r3680 468 468 fputs("\n" 469 469 "# NT dir cache stats:\n", pOut); 470 fprintf(pOut, "# % u objects, taking up %u (%#x) bytes, avg %ubytes\n",470 fprintf(pOut, "# %" KSIZE_PRI_U " objects, taking up %" KSIZE_PRI_U "(%#" KSIZE_PRI_X ") bytes, avg %" KSIZE_PRI_U " bytes\n", 471 471 g_pFsCache->cObjects, g_pFsCache->cbObjects, g_pFsCache->cbObjects, g_pFsCache->cbObjects / g_pFsCache->cObjects); 472 fprintf(pOut, "# % u A path hashes, taking up %u (%#x) bytes, avg %u bytes, %ucollision\n",472 fprintf(pOut, "# %" KSIZE_PRI_U " A path hashes, taking up %" KSIZE_PRI_U " (%#" KSIZE_PRI_X ") bytes, avg %" KSIZE_PRI_U " bytes, %" KSIZE_PRI_U " collision\n", 473 473 g_pFsCache->cAnsiPaths, g_pFsCache->cbAnsiPaths, g_pFsCache->cbAnsiPaths, 474 474 g_pFsCache->cbAnsiPaths / K_MAX(g_pFsCache->cAnsiPaths, 1), g_pFsCache->cAnsiPathCollisions); 475 475 #ifdef KFSCACHE_CFG_UTF16 476 fprintf(pOut, "# % u W path hashes, taking up %u (%#x) bytes, avg %u bytes, %ucollisions\n",476 fprintf(pOut, "# %" KSIZE_PRI_U " W path hashes, taking up %" KSIZE_PRI_U " (%#" KSIZE_PRI_X ") bytes, avg %" KSIZE_PRI_U " bytes, %" KSIZE_PRI_U " collisions\n", 477 477 g_pFsCache->cUtf16Paths, g_pFsCache->cbUtf16Paths, g_pFsCache->cbUtf16Paths, 478 478 g_pFsCache->cbUtf16Paths / K_MAX(g_pFsCache->cUtf16Paths, 1), g_pFsCache->cUtf16PathCollisions); 479 479 #endif 480 fprintf(pOut, "# % u child hash tables, total of %u entries, %u children inserted, %ucollisions\n",480 fprintf(pOut, "# %" KSIZE_PRI_U " child hash tables, total of %" KSIZE_PRI_U " entries, %" KSIZE_PRI_U " children inserted, %" KSIZE_PRI_U " collisions\n", 481 481 g_pFsCache->cChildHashTabs, g_pFsCache->cChildHashEntriesTotal, 482 482 g_pFsCache->cChildHashed, g_pFsCache->cChildHashCollisions); 483 483 484 484 cMisses = g_pFsCache->cLookups - g_pFsCache->cPathHashHits - g_pFsCache->cWalkHits; 485 fprintf(pOut, "# % u lookups: %u (%" KU64_PRI " %%) path hash hits, %u (%" KU64_PRI "%%) walks hits, %u(%" KU64_PRI "%%) misses\n",485 fprintf(pOut, "# %" KSIZE_PRI_U " lookups: %" KSIZE_PRI_U " (%" KU64_PRI " %%) path hash hits, %" KSIZE_PRI_U " (%" KU64_PRI "%%) walks hits, %" KU32_PRI " (%" KU64_PRI "%%) misses\n", 486 486 g_pFsCache->cLookups, 487 487 g_pFsCache->cPathHashHits, g_pFsCache->cPathHashHits * (KU64)100 / K_MAX(g_pFsCache->cLookups, 1), 488 488 g_pFsCache->cWalkHits, g_pFsCache->cWalkHits * (KU64)100 / K_MAX(g_pFsCache->cLookups, 1), 489 489 cMisses, cMisses * (KU64)100 / K_MAX(g_pFsCache->cLookups, 1)); 490 fprintf(pOut, "# % u child searches, %u(%" KU64_PRI "%%) hash hits\n",490 fprintf(pOut, "# %" KSIZE_PRI_U " child searches, %" KSIZE_PRI_U " (%" KU64_PRI "%%) hash hits\n", 491 491 g_pFsCache->cChildSearches, 492 492 g_pFsCache->cChildHashHits, g_pFsCache->cChildHashHits * (KU64)100 / K_MAX(g_pFsCache->cChildSearches, 1));
Note:
See TracChangeset
for help on using the changeset viewer.