[Broken backtraces] profiling c++ program on TK1 board, please help.
Hi everyone, I am profiling my program on TK1 board with Tegra System Profiler. There is a problem that [Broken backtraces] always appears in the result. I have install complete JetPack-L4T-3.1 on my TK1 board, and I used NVIDIA Tegra System Profiler 3.7. My source code is really simple: [code] #include <string> using std::string; int test1() { int i = 1; while(i--) { string str("A string."); } } int test2() { int i = 100; while(i--) test1(); } int test3() { int i = 100; while(i--) test2(); } int test4() { int i = 100; while(i--) test3(); } int main(int argc, char* argv[]) { test4(); } [/code] The source code file is named as "test.cc", and I used this command line on TK1 for compilation: [code]g++ -g -o test test.cc -fno-omit-frame-pointer -funwind-tables -g -marm[/code] When I profiled the "test" excutable file on my host computer, the result is: [url]https://1drv.ms/i/s!AodD9mWCu3Kzjmnp2tUaVEN3d-6u[/url] I cannot estimate which part of my program take the most time by this. Can anyone give me a hint? I really need to solve this. Thank you so much.
Hi everyone,


I am profiling my program on TK1 board with Tegra System Profiler. There is a problem that [Broken backtraces] always appears in the result.

I have install complete JetPack-L4T-3.1 on my TK1 board, and I used NVIDIA Tegra System Profiler 3.7.

My source code is really simple:
#include <string>

using std::string;

int test1() {
int i = 1;
while(i--) {
string str("A string.");
}
}

int test2() {
int i = 100;
while(i--)
test1();
}

int test3() {
int i = 100;
while(i--)
test2();
}

int test4() {
int i = 100;
while(i--)
test3();
}

int main(int argc, char* argv[]) {
test4();
}


The source code file is named as "test.cc", and I used this command line on TK1 for compilation:

g++ -g -o test test.cc -fno-omit-frame-pointer -funwind-tables -g -marm


When I profiled the "test" excutable file on my host computer, the result is:
https://1drv.ms/i/s!AodD9mWCu3Kzjmnp2tUaVEN3d-6u

I cannot estimate which part of my program take the most time by this. Can anyone give me a hint? I really need to solve this.


Thank you so much.

#1
Posted 12/30/2017 11:02 PM   
Scroll To Top

Add Reply