)]}'
{
  "commit": "5af52b51f76d8f8dce0e5b2a33c20b2231c8046d",
  "tree": "ca343ead7bb18f7ad69da2fb4fd4c5e1dcd5d3b1",
  "parents": [
    "a13c3afd9b62b6dace80654964cc4ca7d2db8092"
  ],
  "author": {
    "name": "Stephane Eranian",
    "email": "eranian@google.com",
    "time": "Tue May 18 15:00:01 2010 +0200"
  },
  "committer": {
    "name": "Arnaldo Carvalho de Melo",
    "email": "acme@redhat.com",
    "time": "Tue May 18 23:03:22 2010 -0300"
  },
  "message": "perf stat: add perf stat -B to pretty print large numbers\n\nIt is hard to read very large numbers so provide an option to perf stat\nto separate thousands using a separator. The patch leverages the locale\nsupport of stdio. You need to set your LC_NUMERIC appropriately, for\ninstance LC_NUMERIC\u003den_US.UTF8. You need to pass -B to activate this\nfeature. This way existing scripts parsing the output do not need to be\nchanged. Here is an example.\n\n$ perf stat noploop 2\nnoploop for 2 seconds\n\n Performance counter stats for \u0027noploop 2\u0027:\n\n        1998.347031  task-clock-msecs         #      0.998 CPUs\n                 61  context-switches         #      0.000 M/sec\n                  0  CPU-migrations           #      0.000 M/sec\n                118  page-faults              #      0.000 M/sec\n      4,138,410,900  cycles                   #   2070.917 M/sec  (scaled from 70.01%)\n      2,062,650,268  instructions             #      0.498 IPC    (scaled from 70.01%)\n      2,057,653,466  branches                 #   1029.678 M/sec  (scaled from 70.01%)\n             40,267  branch-misses            #      0.002 %      (scaled from 30.04%)\n      2,055,961,348  cache-references         #   1028.831 M/sec  (scaled from 30.03%)\n             53,725  cache-misses             #      0.027 M/sec  (scaled from 30.02%)\n\n        2.001393933  seconds time elapsed\n\n$ perf stat -B  noploop 2\nnoploop for 2 seconds\n\n Performance counter stats for \u0027noploop 2\u0027:\n\n        1998.297883  task-clock-msecs         #      0.998 CPUs\n                 59  context-switches         #      0.000 M/sec\n                  0  CPU-migrations           #      0.000 M/sec\n                119  page-faults              #      0.000 M/sec\n      4,131,380,160  cycles                   #   2067.450 M/sec  (scaled from 70.01%)\n      2,059,096,507  instructions             #      0.498 IPC    (scaled from 70.01%)\n      2,054,681,303  branches                 #   1028.216 M/sec  (scaled from 70.01%)\n             25,650  branch-misses            #      0.001 %      (scaled from 30.05%)\n      2,056,283,014  cache-references         #   1029.017 M/sec  (scaled from 30.03%)\n             47,097  cache-misses             #      0.024 M/sec  (scaled from 30.02%)\n\n        2.001391016  seconds time elapsed\n\nCc: David S. Miller \u003cdavem@davemloft.net\u003e\nCc: Frédéric Weisbecker \u003cfweisbec@gmail.com\u003e\nCc: Ingo Molnar \u003cmingo@elte.hu\u003e\nCc: Mike Galbraith \u003cefault@gmx.de\u003e\nCc: Paul Mackerras \u003cpaulus@samba.org\u003e\nCc: Peter Zijlstra \u003cpeterz@infradead.org\u003e\nCc: Tom Zanussi \u003ctzanussi@gmail.com\u003e\nLKML-Reference: \u003c4bf28fe8.914ed80a.01ca.fffff5f5@mx.google.com\u003e\nSigned-off-by: Stephane Eranian \u003ceranian@google.com\u003e\nSigned-off-by: Arnaldo Carvalho de Melo \u003cacme@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2cab8e8c33d00df44dd9b215257a856751fefea9",
      "old_mode": 33188,
      "old_path": "tools/perf/Documentation/perf-stat.txt",
      "new_id": "909fa766fa1cfa014041e41ddb76d29555c2469c",
      "new_mode": 33188,
      "new_path": "tools/perf/Documentation/perf-stat.txt"
    },
    {
      "type": "modify",
      "old_id": "ff8c413b7e734008a667b093e4ffc41f2f5bf7b5",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-stat.c",
      "new_id": "9a39ca3c3ac4fe77f5ed23c82b8dc8cc973b9f51",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-stat.c"
    }
  ]
}
