)]}'
{
  "commit": "bd268959eeeed4d86ab37ee280d0ea1a9a6f105e",
  "tree": "7ea01bca177ce6d28c8229b9a67c2763618bd4cc",
  "parents": [
    "8eaf3f235f5b91ef32b9689aee7ed2ad53a5d5cc"
  ],
  "author": {
    "name": "Andi Kleen",
    "email": "ak@linux.intel.com",
    "time": "Tue Aug 18 16:43:15 2015 -0700"
  },
  "committer": {
    "name": "Andi Kleen",
    "email": "ak@linux.intel.com",
    "time": "Wed Feb 17 14:41:43 2016 -0800"
  },
  "message": "perf, tools, stat: Implement --metric-only mode\n\nAdd a new mode to only print metrics. Sometimes we don\u0027t care about\nthe raw values, just want the computed metrics. This allows more\ncompact printing, so with -I each sample is only a single line.\nThis also allows easier plotting and processing with other tools.\n\nThe main target is with using --topdown, but it also works with\n-T and standard perf stat. A few metrics are not supported.\n\nTo avoiding having to hardcode all the metrics in the code it uses\na two pass approach: first compute dummy metrics and only\nprint the headers in the print_metric callback. Then use the callback\nto print the actual values.\n\nThere are some additional changes\nin the stat printout code to handle all metrics being on a single line.\n\nOne issue is that the column code doesn\u0027t know in advance what events\nare not supported by the CPU, and it would be hard to find out\nas this could change based on dynamic conditions. That causes\nempty columns in some cases.\n\nThe output can be fairly wide, often you may need more than 80 columns.\n\nExample:\n\n% perf stat -a -I 1000 --metric-only\n     1.000604977 frontend cycles idle     backend cycles idle      insn per cycle           stalled cycles per insn  branch-misses of all branches\n     1.000604977                                                    0.76                                             2.35%\n     2.000924680                                                    0.72                                             2.34%\n     3.001139592                                                    0.76                                             2.57%\n     4.001358452                                                    0.73                                             2.44%\n\nv2: Lots of updates.\nv3: Use slightly narrower columns\nSigned-off-by: Andi Kleen \u003cak@linux.intel.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3ae7907334bd573cf60e10deec27d078ee9fef4e",
      "old_mode": 33188,
      "old_path": "tools/perf/Documentation/perf-stat.txt",
      "new_id": "3929ab08d54aff60668c119a6afdefa541518d04",
      "new_mode": 33188,
      "new_path": "tools/perf/Documentation/perf-stat.txt"
    },
    {
      "type": "modify",
      "old_id": "715e5b5bf8e6bae9cc358f703a53ff44a7e1ca31",
      "old_mode": 33188,
      "old_path": "tools/perf/builtin-stat.c",
      "new_id": "614036543e916528539fbe6891f32a36da5af7e8",
      "new_mode": 33188,
      "new_path": "tools/perf/builtin-stat.c"
    }
  ]
}
