File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -880,6 +880,8 @@ usage (void)
880
880
mono_profiler_printf ("\toutput=|PROGRAM write the data to the stdin of PROGRAM" );
881
881
mono_profiler_printf ("\toutput=|PROGRAM write the data to the stdin of PROGRAM" );
882
882
// mono_profiler_printf ("\tzip compress the output data");
883
+
884
+ exit (0 );
883
885
}
884
886
885
887
MONO_API void
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ set_hsmode (ProfilerConfig *config, const char* val)
260
260
unsigned int count = strtoul (val , & end , 10 );
261
261
262
262
if (val == end ) {
263
- usage ( );
263
+ mono_profiler_printf_err ( "Could not parse heapshot mode" );
264
264
return ;
265
265
}
266
266
@@ -271,7 +271,7 @@ set_hsmode (ProfilerConfig *config, const char* val)
271
271
config -> hs_mode = MONO_PROFILER_HEAPSHOT_X_GC ;
272
272
config -> hs_freq_gc = count ;
273
273
} else
274
- usage ( );
274
+ mono_profiler_printf_err ( "Could not parse heapshot mode" );
275
275
}
276
276
277
277
static void
@@ -302,7 +302,7 @@ set_sample_freq (ProfilerConfig *config, const char *val)
302
302
freq = strtoul (p , & end , 10 );
303
303
304
304
if (p == end )
305
- usage ( );
305
+ mono_profiler_printf_err ( "Could not parse sample frequency" );
306
306
else
307
307
config -> sample_freq = freq ;
308
308
}
@@ -347,4 +347,6 @@ usage (void)
347
347
mono_profiler_printf ("\treport create a report instead of writing the raw data to a file" );
348
348
mono_profiler_printf ("\tzip compress the output data" );
349
349
mono_profiler_printf ("\tport=PORTNUM use PORTNUM for the listening command server" );
350
+
351
+ exit (0 );
350
352
}
You can’t perform that action at this time.
0 commit comments