summaryrefslogtreecommitdiff
path: root/chromium/tools/metrics/structured/pretty_print.py
blob: 427fdb19f74f9a2ef6f85634df367a6e9523c64c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# Copyright 2017 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import os
import sys

import model

sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
import presubmit_util

def main(argv):
  dirname = os.path.dirname(os.path.realpath(__file__))
  xml = dirname + '/structured.xml'
  old_xml = dirname + '/structured.old.xml'
  presubmit_util.DoPresubmitMain(argv, xml,
                                 old_xml, lambda x: repr(model.Model(x)))


if '__main__' == __name__:
  sys.exit(main(sys.argv))