- KryonMemReport/KryonMemDebugEnabled (KRYON_MEM_DEBUG) print RSS and the glibc arena breakdown; UIFontMemoryReport prints per-font raster stats. - Source fonts rasterize once at the DPI-scaled base size plus one lazily built large tier, replacing the 8-slot per-size cache. New codepoints batch into at most one rebuild per frame per font, and atlas build churn is returned via malloc_trim on glibc. - KRYON_TRAY_GTK_DL: GTK_STATUS_ICON tray resolves GTK via dlopen (gtk_dl shim) so tray-less processes never map the GTK chain.
20 lines
638 B
C
20 lines
638 B
C
#ifndef KRYON_MEM_H
|
|
#define KRYON_MEM_H
|
|
|
|
/*
|
|
* Memory diagnostics for downstream apps. Every report is a no-op unless
|
|
* KRYON_MEM_DEBUG is set in the environment, so apps can call these at
|
|
* interesting points unconditionally.
|
|
*
|
|
* KryonMemReport prints the current RSS/high-water marks from /proc (Linux)
|
|
* plus the glibc allocator arena breakdown (malloc_stats) to stderr. Apps can
|
|
* use KryonMemDebugEnabled() to gate their own heavier diagnostics.
|
|
*/
|
|
|
|
int KryonMemDebugEnabled(void);
|
|
|
|
/* Print a tagged memory snapshot to stderr. No-op without KRYON_MEM_DEBUG. */
|
|
void KryonMemReport(const char *tag);
|
|
|
|
#endif /* KRYON_MEM_H */
|