|
This patch adds support for CPU/GPU monitoring during the execution of a
trace for Intel GPUs. This only works on Linux OS'es, and requires
libpciaccess development library to be built.
The monitoring is controlled by the following options:
-o output - output tab-separated values into a file
-p frames - sample cpu/gpu usage for each N frames
-ps frame - frame to start profiling on
-pe frame - frame to end profiling on
For example:
eglretrace -p 1500 -ps 300000 -pe 1800000 -o profile.dat
~/intel/traces/glbenchmark.egypt.egl
will profile 'glbenchmark.egypt.egl' trace, starting on frame 300000 and
ending on frame 1800000, sampling CPU and GPU usage for each 1500 frames.
The output will be saved into 'profile.dat'.
To plot the GPU usage from said log file, the following command can be
used:
echo "pl 'profile.dat' u 2:6 w l title 'GPU usage'" | gnuplot -p
Signed-off-by: Eugeni Dodonov <eugeni@dodonov.net>
|