diff options
author | Mark Whitehorn <kd0aij@gmail.com> | 2014-12-20 10:27:02 -0700 |
---|---|---|
committer | Mark Whitehorn <kd0aij@gmail.com> | 2014-12-24 14:06:05 -0700 |
commit | 9292c8f405b0ed208443df0b1f9ebd497bb518ab (patch) | |
tree | a1f44a7975b860c5c431cb46a668d5897d2a5fd3 /src/systemcmds/perf/perf.c | |
parent | 92eb637d00dc7bec347ddb6d2ddfd90bb27a0b34 (diff) | |
download | px4-firmware-9292c8f405b0ed208443df0b1f9ebd497bb518ab.tar.gz px4-firmware-9292c8f405b0ed208443df0b1f9ebd497bb518ab.tar.bz2 px4-firmware-9292c8f405b0ed208443df0b1f9ebd497bb518ab.zip |
add interrupt latency printout command and mean/variance to interval performance counter
Diffstat (limited to 'src/systemcmds/perf/perf.c')
-rw-r--r-- | src/systemcmds/perf/perf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/systemcmds/perf/perf.c b/src/systemcmds/perf/perf.c index b08a2e3b7..a788dfc11 100644 --- a/src/systemcmds/perf/perf.c +++ b/src/systemcmds/perf/perf.c @@ -68,8 +68,12 @@ int perf_main(int argc, char *argv[]) if (strcmp(argv[1], "reset") == 0) { perf_reset_all(); return 0; + } else if (strcmp(argv[1], "latency") == 0) { + perf_print_latency(0 /* stdout */); + fflush(stdout); + return 0; } - printf("Usage: perf <reset>\n"); + printf("Usage: perf [reset | latency]\n"); return -1; } |