Skip to content

Python: Opening bracket adding to trace file for each process in multiprocess programs #180

@alizalisan

Description

@alizalisan

Currently, the trace file looks as follows for 4 process:

[
{"name": "spin", "cat": "__main__", "pid": 1278759, "tid": 1278759, "ts": 1733513542630429.2, "ph": "X", "dur": 3061569.5},
[
{"name": "spin", "cat": "__main__", "pid": 1278758, "tid": 1278758, "ts": 1733513542629755.0, "ph": "X", "dur": 3076735.0},
[
{"name": "spin", "cat": "__main__", "pid": 1278761, "tid": 1278761, "ts": 1733513542633122.2, "ph": "X", "dur": 3081125.0},
[
{"name": "spin", "cat": "__main__", "pid": 1278766, "tid": 1278766, "ts": 1733513542636375.0, "ph": "X", "dur": 3080424.75},
{"name": "spin", "cat": "__main__", "pid": 1278757, "tid": 1278757, "ts": 1733513542629198.0, "ph": "X", "dur": 3178967.75},
{"name": "spin", "cat": "__main__", "pid": 1278759, "tid": 1278759, "ts": 1733513546695975.0, "ph": "X", "dur": 3048792.0},

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions