MCPcopy Create free account
hub / github.com/FastLED/FastLED / main

Function main

tests/profile/json_memory_profile.cpp:522–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520// ============================================================================
521
522int main(int argc, char** argv) {
523 printf("================================================================================\n");
524 printf("JSON MEMORY PROFILER\n");
525 printf("================================================================================\n");
526 printf("This profiler tracks ALL heap allocations using global malloc/free overrides.\n");
527 printf("Compares Legacy parse() vs custom parse2() memory usage.\n");
528 printf("================================================================================\n\n");
529
530 int failures = 0;
531
532 // Run all profiling tests
533 failures += test_phase1_validation();
534 failures += test_small_json_profiling();
535 failures += test_large_json_profiling();
536
537 // Summary
538 printf("\n\n");
539 printf("================================================================================\n");
540 if (failures == 0) {
541 printf("✓✓✓ ALL PROFILING TESTS PASSED\n");
542 } else {
543 printf("✗✗✗ %d TEST(S) FAILED\n", failures);
544 }
545 printf("================================================================================\n");
546
547 return failures;
548}

Callers

nothing calls this directly

Calls 4

printfFunction · 0.85
test_phase1_validationFunction · 0.85

Tested by

no test coverage detected