Changeset 239969 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- Jan 14, 2019, 7:01:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r239569 r239969 421 421 bool m_treatWatchdogExceptionAsSuccess { false }; 422 422 bool m_alwaysDumpUncaughtException { false }; 423 bool m_dumpMemoryFootprint { false }; 423 424 bool m_dumpSamplingProfilerData { false }; 424 425 bool m_enableRemoteDebugging { false }; … … 2573 2574 fprintf(stderr, " --watchdog-exception-ok Uncaught watchdog exceptions exit with success\n"); 2574 2575 fprintf(stderr, " --dumpException Dump uncaught exception text\n"); 2576 fprintf(stderr, " --footprint Dump memory footprint after done executing\n"); 2575 2577 fprintf(stderr, " --options Dumps all JSC VM options and exits\n"); 2576 2578 fprintf(stderr, " --dumpOptions Dumps all non-default JSC VM options before continuing\n"); … … 2718 2720 if (!strcmp(arg, "--dumpException")) { 2719 2721 m_alwaysDumpUncaughtException = true; 2722 continue; 2723 } 2724 2725 if (!strcmp(arg, "--footprint")) { 2726 m_dumpMemoryFootprint = true; 2720 2727 continue; 2721 2728 } … … 2929 2936 printSuperSamplerState(); 2930 2937 2938 if (options.m_dumpMemoryFootprint) { 2939 MemoryFootprint footprint = MemoryFootprint::now(); 2940 2941 printf("Memory Footprint:\n Current Footprint: %llu\n Peak Footprint: %llu\n", footprint.current, footprint.peak); 2942 } 2943 2931 2944 return result; 2932 2945 }
Note:
See TracChangeset
for help on using the changeset viewer.