Skip to content

Commit

Permalink
docstring, default filename
Browse files Browse the repository at this point in the history
  • Loading branch information
hsirkar committed Oct 27, 2023
1 parent 4c845d6 commit 9200f88
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pipit/writers/chrome_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@


class ChromeWriter:
"""Exports traces to Chrome Tracing JSON format which can be opened with Chrome Trace Viewer and Perfetto.
"""Exports traces to the Chrome Tracing JSON format which can be opened with Chrome
Trace Viewer and Perfetto for analysis using these tools.
This exports to the older Chrome Tracing JSON format which is still supported by
Perfetto, and not the newer Perfetto binary format.
See https://docs.google.com/document/d/1CvAClvFfyA5R-PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview # noqa
"""

def __init__(self, trace, filename=None):
def __init__(self, trace, filename="trace.json"):
self.trace = trace
self.filename = filename

Expand Down

0 comments on commit 9200f88

Please sign in to comment.