commit | e948be1f86133919fb82f7a25118a40ffa1b36a3 | [log] [tgz] |
---|---|---|
author | Denton Gentry <dgentry@google.com> | Thu Nov 19 12:18:45 2015 -0800 |
committer | Denton Gentry <dgentry@google.com> | Thu Nov 19 12:19:11 2015 -0800 |
tree | 7e51df14a9c109a97216015df42b724dd570dcaa | |
parent | 9b5869f35f2fadd5a3b5402df87c594556372d95 [diff] |
cpulog: set line buffering Otherwise it collects a bunch of measurements and outputs them all at once. Change-Id: I366fad04464fac127d428587228bf928cdd9a5fb
diff --git a/cmds/cpulog.c b/cmds/cpulog.c index ff8498a..f58b17b 100644 --- a/cmds/cpulog.c +++ b/cmds/cpulog.c
@@ -229,6 +229,8 @@ if (optind < argc) usage_and_die(argv[0]); + setlinebuf(stdout); + ticks_per_sec = sysconf(_SC_CLK_TCK); sleep(warmup_seconds);