An open API service indexing awesome lists of open source software.

https://github.com/0xaa4eb/perfscope

Simple GUI for Intel Processor Trace data
https://github.com/0xaa4eb/perfscope

javafx ptrace reverse-engineering

Last synced: 12 months ago
JSON representation

Simple GUI for Intel Processor Trace data

Awesome Lists containing this project

README

          

(Work in progress, POC) A simple viewer for raw Intel PTrace data stored in SQLite database.

### How to use

Only Linux and Intel CPU are supported. Record you program:

sudo perf record --kcore -e intel_pt/cyc/ ./lsm-tree

Then dump all data to SQLite using [export-to-sqlite.py](https://github.com/torvalds/linux/blob/master/tools/perf/scripts/python/export-to-sqlite.py) script:

sudo perf script --itrace=bep -s ~/export-to-sqlite.py sqlite branches calls

Open database in perfscope:

![perfscope](https://github.com/0xaa4eb/perfscope/blob/main/docs/images/example.png)

Perfscope is similar (and can be considered as fork of) to the script [exported-sql-viewer.py](https://github.com/torvalds/linux/blob/master/tools/perf/scripts/python/exported-sql-viewer.py) which
supports building call tree. Implementing additional staff is in progress.

### Build

* Generate JOOQ pojos `./gradlew generateJooq`
* Build `./gradlew clean generateJooq build`

### See also
* [perf ptrace example](https://perfwiki.github.io/main/perf-tools-support-for-intel-processor-trace/)
* [magic-trace](https://github.com/janestreet/magic-trace)