Questions tagged [perfetto]

The Perfetto tracing tool (https://perfetto.dev). Helps analyzing the performance of apps on Linux/Android

14 questions
2
votes
1 answer

CPU utilisation curve from perfetto trace

I wanted to trace the CPU and memory utilization of one of my algorithm on a mobile device. So far I have implemented it in Android as an app and collected the resource utilization trace using Android profiler as a trace file (filename.trace). I…
2
votes
1 answer

How to open a chrome trace file with ui.perfetto.dev non interactively?

I generate chrome trace files and with to open them non interactively from a script. However, I do not want to use the default chrome://tracing page, instead I use https://ui.perfetto.dev which I find much more convenient. The only problem is that…
mark
  • 59,016
  • 79
  • 296
  • 580
2
votes
3 answers

Systrace custom events not showing in release build of app

I am using systrace/perfetto to capture traces. I am following below way to add custom events from my code - https://developer.android.com/topic/performance/tracing/custom-events I can see custom events in debug build but cant see in release…
Rishi
  • 21
  • 4
1
vote
1 answer

Running android systrace inside application

I am trying to develop an app that allows the user to record system traces using systrace, i want to be able to run this inside a regular Android application, without the need of a PC or ROOT access to use the ADB. From Android 9, there is an option…
axebau24
  • 93
  • 8
1
vote
1 answer

Perfetto Android trace "error stats for this trace"

I'm using Perfetto to profile my Android app. Everything works fine and I get a trace file, which I am able to convert into an SQLite3 database, extract measurements from and visualise the results. However, my trace throws an error when it…
pookie
  • 3,796
  • 6
  • 49
  • 105
0
votes
0 answers

Why is Android texture upload being triggered multiple times during scrolling in a complex RecyclerView within a ViewPager

I have a fragment containing a RecyclerView within a ViewPager, which works fine the first time I enter the page. However, after switching back and forth between ViewPager pages multiple times, the RecyclerView starts to lag. Upon analyzing a…
Tao
  • 1
0
votes
1 answer

Profiling the Android Compatibility Test Suite (CTS) using Perfetto on Cuttlefish causes frequent device disconnects

As part of a research project, I am trying perform callstack sampling using Perfetto's cpu_profiler while running the Android Compatibility Test Suite (CTS) using a Cuttlefish Virtual Device (CVD) . My problem is that the CVD frequently disconnects,…
0
votes
0 answers

Not able to use record_android_trace command for Perfetto from command line

I've been following Quickstart: Record traces on Android and also watching the demonstration and guide - Android app performance with Perfetto, after running the command record_android_trace I'm getting this error - Has anyone got this error?
Vikas Pandey
  • 1,115
  • 1
  • 15
  • 25
0
votes
1 answer

How to record a trace with command line tool - record_android_trace for android

I need to trace system trace and view-analyse using Perfetto saw in this video Android app performance with Perfetto, record_android_trace where it is mentioned that the tool - Recording a trace with command line is downloaded and made into an…
Vikas Pandey
  • 1,115
  • 1
  • 15
  • 25
0
votes
1 answer

How to see all events on systrace android profiler?

I think, Whoever has worked with the stack trace, can help me? I'm trying to analyze my systrace, to find the causes of frozen frame issues. I see this - https://developer.android.com/studio/profile/inspect-traces#events-table where all call for a…
Vikas Pandey
  • 1,115
  • 1
  • 15
  • 25
0
votes
0 answers

How can I export/extract log from perfetto trace file?

I use perfetto to capture a trace on android device. and pull it to my computer. I can found out the log after open on ui.perfetto. And the log is shown on android log column. But it's too hard to search. Since perfetto save all its data including…
ene
  • 257
  • 1
  • 8
0
votes
1 answer

How could I find slices' "cpu self time" and "self time" in perfetto UI results like the legacy UI for systrace do?

I'm using perfetto to trace my app. I am not using systrace because I need to trace for long duration. However in the perfetto result below, I can only find slices' "wall duration" not the "self duration" and "cpu self duration" which can be found…
0
votes
1 answer

Can I collect network traffic for my app using Perfetto?

I'd like to save various traces, or metrics. The reason for this is to compare performance per each versions of my application. I want to use Perfetto command line tool to collect metrics and convert them into json format and upload to my DB. I can…
John
  • 1,139
  • 3
  • 16
  • 33
0
votes
1 answer

Can anyone help me to find the UI rendering time in perfetto/systrace?

I am trying to find the UI rendering time for each Activity in android. I come to know that can analyses the performance using of systrace or perfetto. But the problem is find the UI rendering part from that huge graph. Can any one help me to find…