Skip to content

Commit

Permalink
Avoid changing the type of existing variable frames
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowt authored Nov 16, 2023
1 parent 2bca0d6 commit ca93bd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions austin/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ def parse(sample: str, metric_type: Optional[MetricType] = None) -> List["Sample

try:
ms = Metric.parse(metrics, metric_type)
frames = [Frame.parse(frame) for frame in frames.split(";")] if frames else []
frames_parsed = [Frame.parse(frame) for frame in frames.split(";")] if frames else []
return [
Sample(
pid=int(pid),
thread=thread,
metric=metric,
frames=frames,
frames=frames_parsed,
)
for metric in ms
]
Expand Down

0 comments on commit ca93bd3

Please sign in to comment.