How to run TraceProcessor as a independent tool (or a shell interface) on Win?

187 views
Skip to first unread message

kien le

unread,
Apr 13, 2021, 11:44:27 PM4/13/21
to Perfetto Development - www.perfetto.dev
Hello Perfetto develop team,
I am woking on a tool (on Win) which will analyze perfetto trace file automaticly. But I can't embedd TraceProcessor shell interface into my app (it seem not support on Window).
Have any ways to use TraceProcessor on Win? 

I want to build TraceProcessor source on Window as a alternative solution. Is it possible? if yes, Could you guide me how to config build on window?
Thank you!

Primiano Tucci

unread,
Apr 14, 2021, 4:09:34 AM4/14/21
to kien le, Perfetto Development - www.perfetto.dev
TraceProcessor (and the whole perfetto codebase) is one CL away from being able to be built on Windows.
If you go back to https://github.com/google/perfetto/commit/1c5c317076a85d2a9c57b18902e1b8eff7f58520 that one allows to build and run trace_processor_shell.exe on Windows.
Unfortunately I had to revert that CL in r.android.com/1608095 and didn't have time to reland it yet.

So if you pin 1c5c317076 you should be able to gn+ninja on Windows.
There are some instructions on https://perfetto.dev/docs/contributing/build-instructions although they don't have a window section yet.
On windows the process is the same (gn+ninja, which get automatically downloaded). You just need to install Windows 10 SDK and Build Tools for Visual Studio 2019 (see https://github.com/google/perfetto/blob/cfe5ac4523542ccec3a2c53192b7af44769e93c0/gn/standalone/toolchain/msvc.gni

Hope it helps,
Primiano

--
You received this message because you are subscribed to the Google Groups "Perfetto Development - www.perfetto.dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to perfetto-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/perfetto-dev/9b160547-7928-4d60-85c0-db3ab7975583n%40googlegroups.com.


--
Primiano Tucci
Software Engineer
Google UK Limited

kien le

unread,
Apr 14, 2021, 4:33:23 AM4/14/21
to Perfetto Development - www.perfetto.dev
Hi primiano,
Thank you for quickly reply. I will try your guide to build on Windows.

By the way, if you still preserved any execution file of trace_processor_shell for Window at previous builds, Could you share me for testing?
Thank you so much again!

Vào lúc 15:09:34 UTC+7 ngày Thứ Tư, 14 tháng 4, 2021, primiano đã viết:

Primiano Tucci

unread,
Apr 14, 2021, 3:51:22 PM4/14/21
to kien le, Perfetto Development - www.perfetto.dev
I had a version lying around on my Windows laptop. 
I think it's not too fresh (~December maybe?) but seems to work.



Reply all
Reply to author
Forward
0 new messages