question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Couldn't read the profile (JSON deserialization error)

See original GitHub issue

I’m getting

Error: Unserializing the profile failed: SyntaxError: Unexpected token r in JSON at position 11

when dragging/picking a file named test.perf whose first 100 lines are in this gist: https://gist.github.com/fasterthanlime/18b5932133186598c26f0e335d8fa1aa

the file was generated via perf record stuff && perf script -F +pid > test.perf


context: originally came from https://www.reddit.com/r/rust/comments/vyb9rt/comment/ig14wa2/?utm_source=reddit&utm_medium=web2x&context=3

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mstangecommented, Jul 14, 2022

Oh, I missed this comment.

Ah, while I have you: any chance of getting something chrome://tracing-style into the Firefox profiler?

It looks like we have #2166 open for this format. So yes, it’s something we’d like to support, but nobody has done the work yet.

I’m looking for a pipeline from not-perf to the Firefox profiler

I’m currently working on a fork of not-perf which outputs the Firefox profiler format. I’ll let you know once I’ve published it on github.

0reactions
mstangecommented, Jul 25, 2022

I’ve pushed the Linux profile recording code into the repo and published a version of samply with it.

$ cargo install samply
$ samply record ./yourcommand args

I’m going to write up my plans in the repo, when I get a chance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Couldn't read the profile (JSON deserialization error)
I'm getting. Error: Unserializing the profile failed: SyntaxError: Unexpected token r in JSON at position 11.
Read more >
c# - Error when deserializing JSON to Object - Stack Overflow
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is...
Read more >
Solved: HubSpot Community - Response deserialization error
Solved: I am attempting to display a card under contacts using the CRM Extensions API but getting a Response deserialization error. This is...
Read more >
Rover CLI error codes - Apollo GraphQL Docs
This error occurs when the expected JSON response from a GraphQL endpoint can't be deserialized. This is most likely caused by an invalid...
Read more >
API: Error deserializing from error response #591 - GitHub
Describe the bug I am attempting to get the real time sync to work ... The data couldn't be read because it isn't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found