| 520 | // ============================================================================ |
| 521 | |
| 522 | int 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 | } |
nothing calls this directly
no test coverage detected