Graphics Event Profiler(gep) is mainly for gpu performance tuning, which includes two parts: kernel patches and helper scripts.
https://drive.google.com/drive/folders/1mnpNg4Qya9cgTqE-dUvNvc1ikxmw_UaD
Please browse the sample to check whether the tool meets your requirement.
- Open sample.zip through chrome://tracing.
- Navigate through keyboard and mouse
- w/s: Zoom in/out
- a/d: Pan left/right
Please apply the kernel patches at kernel-patches folder
- Python 3
- On Ubuntu, run this command
sudo apt install python3
- Python pandas library
- On Ubuntu, run this command
sudo pip3 install pandas
- capture the ftrace on the target system.
- enable ftrace through enable-trace.sh
- run test case for a while
- copy /sys/kernel/debug/tracing/trace to your local folder
- parse the captured ftrace and generate trace.zip.
- gep.py ftrace
- open trace.zip through chrome://tracing.
gep.py output explanation:
- Engine Utilitzation
- Total batch buffer execution time vs total elapsed time.
- BB Timing
- Batch buffer timing summary for each engine and context.