Skip to content

Commit

Permalink
Add py_trace_event to DEPS.
Browse files Browse the repository at this point in the history
py_trace_event lets you instrument Python code to get Chrome traces.
In third_party without a README.chromium, because
it's by Chromium authors and Chromium-licensed.

BUG=None.
TEST=gclient sync

Review URL: https://codereview.chromium.org/615363002

Cr-Commit-Position: refs/heads/master@{#297736}
  • Loading branch information
dave-2 authored and Commit bot committed Oct 1, 2014
1 parent 8c20d98 commit 3429796
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ v8.log
/third_party/ppapi
/third_party/psyco_win32
/third_party/pthreads-win32
/third_party/py_trace_event/src
/third_party/pyelftools
/third_party/pyftpdlib/src
/third_party/pylib
Expand Down
3 changes: 3 additions & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ deps = {

'src/third_party/boringssl/src':
'https://boringssl.googlesource.com/boringssl.git' + '@' + Var('boringssl_revision'),

'src/third_party/py_trace_event/src':
Var('chromium_git') + '/external/py_trace_event.git' + '@' + 'dd463ea9e2c430de2b9e53dea57a77b4c3ac9b30',
}


Expand Down
2 changes: 2 additions & 0 deletions third_party/py_trace_event/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nduca@chromium.org
dtu@chromium.org
21 changes: 21 additions & 0 deletions third_party/py_trace_event/README.chromium
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Name: py_trace_event
URL: https://github.com/natduca/py_trace_event
Version: 0
Date: August 18, 2014
Revision: dd463ea9e2c430de2b9e53dea57a77b4c3ac9b30
License: BSD
License File: src/LICENSE
Security Critical: no
License Android Compatible: yes

Description:
py_trace_event allows low-overhead instrumentation of a multi-threaded,
multi-process application in order to study its global performance
characteristics. It uses the trace event format used in Chromium/Chrome's
about:tracing system.

Trace files generated by py_trace_event can be viewed and manipulated by
trace_event_viewer.

Local Modifications:
None.
10 changes: 10 additions & 0 deletions tools/telemetry/telemetry/util/trace.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from telemetry.core import util


util.AddDirToPythonPath(util.GetChromiumSrcDir(),
'third_party', 'py_trace_event', 'src')
from trace_event import * # pylint: disable=F0401

0 comments on commit 3429796

Please sign in to comment.