bartbutenaers / node-red-contrib-v8-cpu-profiler

A Node-RED node to start CPU profiling on the V8 engine (used by NodeJs)
Apache License 2.0
4 stars 0 forks source link

Error: Malformed timeline data #4

Open AndreKR opened 3 weeks ago

AndreKR commented 3 weeks ago

When I try to load the obtained .cpuprofile file into DevTools I only get an error message in the console:

Malformed timeline data: [formatjs Error: MISSING_VALUE] The intl string context variable "PH1" was not provided to the string "Malformed timeline data: {PH1}"

This is the button I tried to use to load the profile:

image

bondarevky commented 1 week ago

Same behavior at https://discoveryjs.github.io/cpupro/ CPUPro

bartbutenaers commented 1 week ago

@AndreKR

Sorry for the delay! Severe lack of free time unfortunately...

When I tried my node tonight, I indeed had the same issue like you. I have now published version 1.1.0 which is available in the palette:

image

This version offers - beside the old flat format - also the new tree format:

image

For me it works now with Chrome again.

@bondarevky I have also tried to load the file with the new format in that tool you have mentioned. But it still gives me a "Bad format" error. Unfortunately I have no clue at all what could cause that...

bondarevky commented 1 week ago

@bartbutenaers Nothing changed for me in Chrome DevTools with a new version of node. I think it's because there is no "node[" section in .cpuprofile files. https://developer.chrome.com/blog/profiling-cpu#supporting_the_cpuprofile_file_format

Chrome: 129.0.6668.101 OS: Windows 11 64-bit Profile of your example flow

bartbutenaers commented 1 week ago

@bondarevky, Sorry to hear that it doesn't work for you.
I am lacking free time to digg too much into detail. But I see that you already managed to pinpoint the problem. Would be nice if you could explain your problem in the repo of the library that this node is using: see here. If the author of that node would be able to help you and publish a new version, then that new version of his library would be automatically installed when you reinstall this node. Thanks for the analysis!! Bart