Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

’workload-webgpu-trace.json‘ format does not include the prefixes CPU::ORT or GPU::ORT. #3

Open
137591 opened this issue Jun 3, 2024 · 0 comments

Comments

@137591
Copy link

137591 commented Jun 3, 2024

The command node main.js --timestamp-format day --tasks workload --workload-url http://localhost:8000/src/minist-demo.html --enable-trace --enable-trace is used to record performance data for my application.’ minist-demo.html‘ is an application workload for ONNX Runtime. However, in the generated workload-webgpu-trace.json format, there are no prefixes CPU::ORT or GPU::ORT, which causes the parseTrace function to fail to process it into a specific timelineJson format. I have already inserted ’window.ort.env.trace = true‘ in my program,Could you please clarify if I made a mistake in which step?
Here is one line from the workload-webgpu-trace.json that I generated.
{"args":{"name":"ThreadPoolForegroundWorker"},"cat":"__metadata","name":"thread_name","ph":"M","pid":28480,"tid":6556,"ts":0},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant