Skip to content

Commit 2106339

Browse files
committed
Fix CI with latest black compatibility
1 parent 1a72e7b commit 2106339

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

perf_trace_viewer/trace_event.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,36 @@ class DurationEvent(Event):
5656
@dataclass
5757
class BeginEvent(DurationEvent):
5858
"An event that starts a span"
59+
5960
ph: str = "B"
6061

6162

6263
@dataclass
6364
class EndEvent(DurationEvent):
6465
"An event that ends a span"
66+
6567
ph: str = "E"
6668

6769

6870
@dataclass
6971
class InstantEvent(Event):
7072
"A standalone event"
73+
7174
ph: str = "i"
7275
s: str = "p" # scope ('g' for global, 'p' for process, 't' for thread)
7376

7477

7578
@dataclass
7679
class MetadataEvent(Event):
7780
"A metadata record"
81+
7882
ph: str = "M"
7983

8084

8185
@dataclass
8286
class ProcessNameEvent(MetadataEvent):
8387
"Metadata that associates a user-visible pid with a process name"
88+
8489
name = "process_name"
8590

8691
def __init__(self, pid: int, process_name: str) -> None:
@@ -91,6 +96,7 @@ def __init__(self, pid: int, process_name: str) -> None:
9196
@dataclass
9297
class ThreadNameEvent(MetadataEvent):
9398
"Metadata that associates a user-visible (pid, tid) pair with a thread name"
99+
94100
name = "thread_name"
95101

96102
def __init__(self, pid: int, tid: int, thread_name: str) -> None:
@@ -102,6 +108,7 @@ def __init__(self, pid: int, tid: int, thread_name: str) -> None:
102108
@dataclass
103109
class ProcessLabelEvent(MetadataEvent):
104110
"Metadata that associates a label with a process"
111+
105112
name = "process_labels"
106113

107114
def __init__(self, pid: int, label: str) -> None:

0 commit comments

Comments
 (0)