• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Feb-2021-

bin/H16-Feb-2021-1,374982

docs/H16-Feb-2021-283207

images/H03-May-2022-

skp_data/H03-May-2022-

test_data/H16-Feb-2021-

third_party/H16-Feb-2021-6,5555,250

tracing/H03-May-2022-13,1149,942

tracing_build/H03-May-2022-2,4671,757

tracing_examples/H03-May-2022-

.allow-devtools-saveH A D16-Feb-20210

.bowerrcH A D16-Feb-202144 43

.gitignoreH A D16-Feb-202199 109

.npmignoreH A D16-Feb-2021112 1813

BUILD.gnH A D16-Feb-20211.2 KiB4938

LICENSEH A D16-Feb-20211.5 KiB2827

OWNERSH A D16-Feb-2021561 2117

PRESUBMIT.pyH A D16-Feb-20214.6 KiB142106

README.mdH A D16-Feb-20212.8 KiB5334

app.yamlH A D16-Feb-20211.4 KiB5945

bower.jsonH A D16-Feb-2021491 2322

package.jsonH A D16-Feb-2021551 2322

trace_viewer.gniH A D16-Feb-202133.3 KiB697695

tracing_project.pyH A D16-Feb-20217.4 KiB218161

README.md

1
2<!-- Copyright 2015 The Chromium Authors. All rights reserved.
3     Use of this source code is governed by a BSD-style license that can be
4     found in the LICENSE file.
5-->
6![Trace Viewer Logo](https://raw.githubusercontent.com/catapult-project/catapult/master/tracing/images/trace-viewer-circle-blue.png)
7
8Trace-Viewer is the javascript frontend for Chrome [about:tracing](http://dev.chromium.org/developers/how-tos/trace-event-profiling-tool) and [Android
9systrace](http://developer.android.com/tools/help/systrace.html).
10
11It provides rich analysis and visualization capabilities for many types of trace
12files. Its particularly good at viewing linux kernel traces (aka [ftrace](https://www.kernel.org/doc/Documentation/trace/ftrace.txt)) and Chrome's
13[trace_event format](https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview). Trace viewer can be [embedded](https://github.com/catapult-project/catapult/blob/master/tracing/docs/embedding-trace-viewer.md) as a component in your own code, or used from a plain checkout to turn trace files into standalone, emailable HTML files from the commandline:
14
15```
16$CATAPULT/tracing/bin/trace2html my_trace.json --output=my_trace.html && open my_trace.html
17```
18
19Its easy to [extend trace viewer](https://github.com/catapult-project/catapult/blob/master/tracing/docs/extending-and-customizing-trace-viewer.md) to support your favorite trace format, or add domain specific visualizations to the UI to simplify drilling down into complex data.
20
21Contributing, quick version
22===
23We welcome contributions! To hack on this code.
24
25There are two type of tests.
26
27### In the browser
28
29Run http server `$CATAPULT/bin/run_dev_server`. In any browser, navigate to `http://localhost:8003/`
30
31**Unit tests**| **Descripton**
32--- | ---
33All tests | http://localhost:8003/tests.html
34All tests with short format | http://localhost:8003/tracing/tests.html?shortFormat
35An individual test suite(such as ui/foo_test.js) | http://localhost:8003/tests.html?testSuiteName=ui.foo
36Tests named foo| http://localhost:8003/tests.html?testFilterString=foo
37
38### On command
39
40**Unit tests**| **Description**
41--- | ---
42All python tests | `$CATAPULT/tracing/bin/run_py_tests`
43All tracing tests in d8 environment | `$CATAPULT/tracing/bin/run_vinn_tests`
44All tracing tests in devserver environment | `$CATAPULT/tracing/bin/run_devserver_tests`
45All tests | `$CATAPULT/tracing/bin/run_tests`
46
47Make sure tests pass before sending us changelist. **We use Gerrit for codereview**. For more details, esp on Gerrit, [read our contributing guide](https://github.com/catapult-project/catapult/blob/master/CONTRIBUTING.md) or check out the [Getting Started guide](https://github.com/catapult-project/catapult/blob/master/tracing/docs/getting-started.md).
48
49Contact Us
50===
51Join our Google Group:
52* [tracing@chromium.org](https://groups.google.com/a/chromium.org/forum/#!forum/tracing)
53