uber / nanoscope-art

Apache License 2.0
49 stars 13 forks source link

Sanitize Class and Method name before writing trace file #8

Closed Leland-Takamine closed 6 years ago

Leland-Takamine commented 6 years ago

When a non ascii character is found in the trace, the html generation ends with an empty file and chrome://tracing is not able to open the trace file. I removed these chars manually and it works fine after. I'm opening this task noting all the ones I found.

{"cat": "PERF", "ph": "X", "pid": 1, "name": "ClassLinker.DefineClass", "tid": 1, "ts": "2682030", "dur": "107", "args": {"fullName": "Class ClassLinker.DefineClass()#H•×_expvL‹2e®¾ÿ"}},
{"cat": "PERF", "ph": "X", "pid": 1, "name": "ClassLinker.DefineClass", "tid": 1, "ts": "7797364", "dur": "158", "args": {"fullName": "Class ClassLinker.DefineClass()#ÿ‚"}},

{"cat": "PERF", "ph": "X", "pid": 1, "name": "ClassLinker.DefineClass", "tid": 1, "ts": "3334911", "dur": "429", "args": {"fullName": "Class ClassLinker.DefineClass()# ßÐH