Messages in this thread | | | Date | Sat, 19 Jan 2013 00:03:05 +0100 | Subject | Re: [PATCH v3 2/2] perf stat: add interval printing | From | Stephane Eranian <> |
| |
On Fri, Jan 18, 2013 at 7:30 PM, Andi Kleen <ak@linux.intel.com> wrote: >> if (forks) { >> close(go_pipe[1]); >> + if (interval) { >> + while (!waitpid(child_pid, &status, WNOHANG)) { >> + ret = nanosleep(&ts, NULL); >> + if (ret == 0 && interval) >> + print_interval(); > > It would be good to make sure that if someone Ctrl-Cs > you still print the latest interval(even if shorter) > Ok, I can remove the test. The interval is redundant here anyway. Will post V4 shortly.
| |