diff --git a/src/main.c b/src/main.c index cca68e17..78d9e011 100644 --- a/src/main.c +++ b/src/main.c @@ -594,7 +594,9 @@ static void _error_handler(int sig) static void _startup(int argc, char* argv[]) { - bool tracking = false; + char buffer[8] = { 0 }; + size_t buffer_size = sizeof(buffer); + bool tracking = uv_os_getenv("TF_MEM_TRACKING", buffer, &buffer_size) == 0 && strcmp(buffer, "1") == 0; for (int i = 1; i < argc; i++) { if (strcmp(argv[i], "sandbox") == 0)