Skip to content

Commit 192e54b

Browse files
committed
reorder
1 parent 5a59e0b commit 192e54b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Lib/profiling/sampling/jsonl_collector.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,15 @@ def _build_end_record(self):
116116

117117
return record
118118

119+
def _iter_final_agg_entries(self):
120+
for frame_record in self._frames:
121+
frame_id = frame_record["frame_id"]
122+
yield {
123+
"frame_id": frame_id,
124+
"self": self._frame_self[frame_id],
125+
"cumulative": self._frame_cumulative[frame_id],
126+
}
127+
119128
def _get_or_create_frame_id(self, filename, location, funcname):
120129
synthetic = location is None
121130
location_fields = self._location_to_export_fields(location)
@@ -175,15 +184,6 @@ def _location_to_export_fields(location):
175184
fields["end_col"] = end_col_offset
176185
return fields
177186

178-
def _iter_final_agg_entries(self):
179-
for frame_record in self._frames:
180-
frame_id = frame_record["frame_id"]
181-
yield {
182-
"frame_id": frame_id,
183-
"self": self._frame_self[frame_id],
184-
"cumulative": self._frame_cumulative[frame_id],
185-
}
186-
187187
def _write_chunked_records(
188188
self, output, base_record, chunk_field, entries
189189
):

0 commit comments

Comments
 (0)