search for: removetimer

Displaying 5 results from an estimated 5 matches for "removetimer".

2011 Jun 01
2
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
Thanks for the reply! Unfortunately, that seems to have the same effect as setting llvm::TimePassesIsEnabled myself, and all my same problems still apply as the TimingInfo's destructor (PassManager.cpp) is still never called. Running it in the debugger shows that TimerGroup's removeTimer method is never called, nor is it's destructor (but it's constructor is). On Wed, Jun 1, 2011 at 11:51 AM, Andrew Clinton <andrew at sidefx.com> wrote: > I got it working with this: > >     int          argc = 2; >     const char  *argv[2] = {"myopt", "-tim...
2011 Jun 01
0
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
...s for the reply! Unfortunately, that seems to have the same > effect as setting llvm::TimePassesIsEnabled myself, and all my same > problems still apply as the TimingInfo's destructor (PassManager.cpp) > is still never called. Running it in the debugger shows that > TimerGroup's removeTimer method is never called, nor is it's > destructor (but it's constructor is). > > On Wed, Jun 1, 2011 at 11:51 AM, Andrew Clinton<andrew at sidefx.com> wrote: >> I got it working with this: >> >> int argc = 2; >> const char *argv[2]...
2011 Jun 01
2
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
...mers and TimerGroups. Even if I call llvm::getPassTimer for one of the passes (and I do get a timer that is initialized), I can't figure out to get to its TimerGroup (TG is private, but if I use a debugger, I can get it and call printAll successfully). Looking through the code, TimerGroup's removeTimer (also called in it's destructor) appears to print everything out to the info-output-file (stderr) when its Timers are all removed but I see no output, however I'm able to call llvm::CreateInfoOutputFile myself, pipe to it, and stuff shows up on stderr. In PassManager.cpp, TheTimeInfo (which...
2011 Jun 01
0
[LLVMdev] How best to time passes using the API instead of opt? Also, memory leaks when trying to do timing in the API.
.... Even if I call llvm::getPassTimer for one of the passes > (and I do get a timer that is initialized), I can't figure out to get > to its TimerGroup (TG is private, but if I use a debugger, I can get > it and call printAll successfully). Looking through the code, > TimerGroup's removeTimer (also called in it's destructor) appears to > print everything out to the info-output-file (stderr) when its Timers > are all removed but I see no output, however I'm able to call > llvm::CreateInfoOutputFile myself, pipe to it, and stuff shows up on > stderr. In PassManager.cpp...
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...by 0x40CE62D: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib/libstdc++.so.5.0.7) ==10132== by 0x86F9357: llvm::TimerGroup::removeTimer() (Timer.cpp:302) ==10132== by 0x86F8405: llvm::Timer::~Timer() (Timer.cpp:91) ==10132== by 0x8522B0A: std::pair<llvm::Pass* const, llvm::Timer>::~pair() ( PassManagerT.h:113) ==10132== by 0x8524260: void std::_Destroy<std::pair<llvm::Pass* const, llvm::Timer> >(std::pair...