I want to do some kind of even logging in my OpenVX application to look for possible bottlenecks in execution, is there a way I can do that? I'm using PSDKRA 7.0.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I want to do some kind of even logging in my OpenVX application to look for possible bottlenecks in execution, is there a way I can do that? I'm using PSDKRA 7.0.
We have many HW accelerators and CPUs in the TDA4 SoC, due to this a lot of processing functions in an application can run in parallel and result in better performance due to pipelining.
But sometimes due to some configuration problems or other issues, we don't get expected performance and that time we need to look at how things are running, in what sequence are they running and how fast are they running. With that information we can get an idea as to where the bottleneck is.
The TIVX_LOG_RT tool helps us in visually inspecting the execution of different node on different CPUs / HW accelerators w.r.t. global timestamp.
We can do a two level analysis as follows:
This tool enables run-time node start/stop event logging.
Tool outputs a .bin file on the target (EVM) and this can be post processed using offline tools to give .vcd and .html files.
To enable run-time event logging in your program do below,
Install and build gtkwave: [ONE TIME ONLY]
sudo apt-get install gtkwave cd <PSDKRA_INSTALL_DIR>/tiovx/tools/tivx_log_rt make
To visualize the graph data do below:
tiovx/tools/tivx_log_rt/tivx_log_rt_2_vcd.out -i event_log.bin -o event_log.vcd
tiovx/tools/tivx_log_rt/tivx_log_rt_2_html.out -i event_log.bin -o event_log.html
gtkwave event_log.vcd
The tool was added after the PSDKRA 7.0 release and will be supported as a part of the SDK coming forward. The patches attached are to enable customers on PSDKRA 7.0 ahead of the next release.
Patches are on top of tiovx and vision_apps and baseline is PSDKRA 7.0
/cfs-file/__key/communityserver-discussions-components-files/791/tivx_5F00_log_5F00_rt.zip
Steps to apply the patches are mentioned in the README in the above package.
.vcd view
.html view