Building SimplePerf

988 views
Skip to first unread message

coconut water

unread,
Jul 16, 2025, 7:35:28 AMJul 16
to Android Building
Hi all. I am currently trying to build a simpleperf.exe for windows. At this point, I have already fetched the entire Android source code, the source code for simpleperf and got a clang++ on my machine. I have a few questions listed below:
1. Is there anything else that I need?
2. How should I build such a simpleperf.exe? Should I specify the target platform in clang?
3. Finally, does anyone know how to build simpleperf for windows?

Thanks for all reply, if any

enh

unread,
Jul 16, 2025, 7:44:00 AMJul 16
to android-...@googlegroups.com
On Wed, Jul 16, 2025 at 7:35 AM coconut water <kchen...@gmail.com> wrote:
>
> Hi all. I am currently trying to build a simpleperf.exe for windows. At this point, I have already fetched the entire Android source code, the source code for simpleperf and got a clang++ on my machine. I have a few questions listed below:
> 1. Is there anything else that I need?

no.

> 2. How should I build such a simpleperf.exe? Should I specify the target platform in clang?

no.

> 3. Finally, does anyone know how to build simpleperf for windows?

just `lunch` any target and then build in system/extras/simpleperf ...
the Linux build automatically cross-compiles the Windows tools using a
prebuilt mingw that's part of the tree. it'll be in
out/host/windows-x86.

> Thanks for all reply, if any
>
> --
> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/android-building/d6d34a9c-ef28-4d86-b795-03164a8fd295n%40googlegroups.com.

coconut water

unread,
Jul 18, 2025, 8:31:35 AMJul 18
to Android Building
Yeah thanks for your help. Is it necessary to compile the entire Android, which I heard to be time consuming, probably taking 6 hours on a standard workstation. Or can I just compile the part depended by simpleperf?

enh

unread,
Jul 18, 2025, 9:04:39 AMJul 18
to android-...@googlegroups.com
that's why i said "build in system/extras/simpleperf" :-)
> To view this discussion visit https://groups.google.com/d/msgid/android-building/299b029e-be02-437d-baa2-59f972954a68n%40googlegroups.com.

coconut water

unread,
Jul 22, 2025, 11:19:18 AMJul 22
to Android Building
This is super helpful, and I have already built what I need.    Thanks!
Reply all
Reply to author
Forward
0 new messages