Comments (2)
The current Perf capture is documented here, including exact script commands and conversion to txt format with the right naming - https://github.com/microsoft/Microsoft-Performance-Tools-Linux-Android/blob/develop/LinuxTraceLogCapture.md#perf
Unfortunately, it's a bit complicated, but that is because LTTng does not support CPU Sampling capture yet, and the perf tool is the built-in kernel standard tool that allows this. Decoding to text is required not only to read the format but because it contains symbols. LTTng does not have great symbol support at the moment.
I don't particularly love that we REQUIRE a certain extension (like .txt). However, with a plugin framework as is used by Microsoft Performance Toolkit SDK, you do need to see if a certain plugin (like perf) supports a certain file format, and an extension is a standard way to do that. The file is indeed txt format. We also use the same format and general capture method as https://aka.ms/perfcollect
Do you have any suggestions or PR to improve @ami-GS?
FYI @Nemati as he recently used this and may also have some ideas as well
from microsoft-performance-tools-linux-android.
I did not notice the document. but what I did was more simpler than the one written.
perf record -F XX -a -g -o out.perf.data MY_COMMAND
perf script -i out.perf.data > out.perf.data.txt
This file could be visualized on WPA
what the difference with the commands on your doc?
And, just .txt file failed to be loaded. Need to have XXX.perf.data.txt.
This is more complicated and nothing mentioned as much as I investigated.
My recommendation is that WPA Diagnostic console to mention ".perf.data.txt"
like
Associating .PERF.DATA.TXT
with `Linux Perf Txt Data
instead of
Associating .TXT
with `Linux Perf Txt Data
or mention the requirements in the doc
from microsoft-performance-tools-linux-android.
Related Issues (20)
- LTTngDataExtensions unable to process traces from NET6.0+ project
- Lack of LTTngCds implementation? HOT 1
- WPA sometimes fails to load perf data HOT 3
- perf artifact recorded without -a option failed to be loaded HOT 1
- error while load trace with perf HOT 2
- WPA cannot find this plugin even SET WPA_ADDITIONAL_SEARCH_DIRECTORIES HOT 2
- [Feature Request] Add resolved callstacks to Execution Events HOT 3
- [Feature] Perfetto - Support Android 12 CPU Scheduling CallStacks
- [Feature] Perfetto - GPU Counters tables HOT 1
- Linux "perf" traces give a confusing error if the trace is not named "perf.data.txt" HOT 1
- Linux "perf" traces should allow multiple file names, not just "perf.data.txt" HOT 2
- LTTng traces do not show the thread id
- Zooming in the LTTng graph view does not filter the events in the table view
- WPA crashes on data from latest lttng HOT 22
- No Graphs visible HOT 10
- [Feature request] Perfetto - Display browser tab title alongside renderer view HOT 1
- "Open Unified" button not showing HOT 3
- hello HOT 2
- LTTng Parsing Library to Use HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-performance-tools-linux-android.