This is an archive of the discontinued LLVM Phabricator instance.

Statistic: Add machine parseable json
ClosedPublic

Authored by MatzeB on Jun 3 2016, 9:21 PM.

Details

Summary
  • We lacked a short unique identifier for a statistics, so I renamed the current "Name" field that just contained the DEBUG_TYPE name of the current file to DebugType and added a new "Name" field that contains the C++ identifier of the statistic variable.
  • Add the -stats-json option which outputs statistics in json format.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 59644.Jun 3 2016, 9:21 PM
MatzeB retitled this revision from to Statistic: Add machine parseable name,value pair output.
MatzeB updated this object.
MatzeB added a reviewer: bruno.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
MatzeB updated this revision to Diff 60733.Jun 14 2016, 1:18 PM
MatzeB retitled this revision from Statistic: Add machine parseable name,value pair output to Statistic: Add machine parseable json.
MatzeB updated this object.

Apparently people prefer json output, so use that.

silvas added a subscriber: silvas.Jun 14 2016, 7:29 PM

Nice! This LGTM.

bruno accepted this revision.Jun 15 2016, 10:57 AM
bruno edited edge metadata.

Hi Matthias,

Awesome! LGTM

This revision is now accepted and ready to land.Jun 15 2016, 10:57 AM
This revision was automatically updated to reflect the committed changes.