search for: memoryprofiling

Displaying 10 results from an estimated 10 matches for "memoryprofiling".

2011 Sep 28
0
[LLVMdev] Instrumenting C/C++ programs
Hi, Himanshu. I once wrote an LLVM IR-based memory profiling pass. Basically, I followed the code for EdgeProfiling. The source code is enclosed here, which worked with LLVM 2.8. Hope it is helpful. MemoryProfiling.cpp---the instrumentation pass, which inserts profiling function calls into the original program MemoryProfiling.c---the profiling library containing the profiling calls llvm-memory-profiling.patch---the other modifications notes.txt---some information collected when I was working on th...
2011 Sep 27
1
[LLVMdev] Instrumenting C/C++ programs
Hey John, Thank you for the detailed reply. I tried to figure out myself which IR should I use for my purpose ( Clang's Abstract Syntax Tree (AST) or LLVM's SSA Intermediate Representation (IR). ), but couldn't really figure out which one to use. Here is what I m trying to do. Given any C/C++ program (like the one given below), I am trying to insert calls to some function, before and
2011 Sep 23
3
[LLVMdev] Instrumenting C/C++ programs
I just read that LLVM project could be used to do static analysis on C/C++ codes using the analyzer Clang which the front end of LLVM. I wanted to know if it is possible to extract all the accesses to memory(variables, local as well as global) in the source code using LLVM. Is there any inbuilt library present in LLVM which I could use to extract this information. If not please suggest me how to
2011 Sep 28
2
[LLVMdev] Instrumenting C/C++ programs
..., 2011 at 6:49 AM, xiaoming gu <xiaoming.gu at gmail.com> wrote: > Hi, Himanshu. I once wrote an LLVM IR-based memory profiling > pass. Basically, I followed the code for EdgeProfiling. The source code is > enclosed here, which worked with LLVM 2.8. Hope it is helpful. > > MemoryProfiling.cpp---the instrumentation pass, which inserts profiling > function calls into the original program > MemoryProfiling.c---the profiling library containing the profiling > calls > llvm-memory-profiling.patch---the other modifications > notes.txt---some information collected...
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
...ming gu <xiaoming.gu at gmail.com>wrote: > >> Hi, Himanshu. I once wrote an LLVM IR-based memory profiling >> pass. Basically, I followed the code for EdgeProfiling. The source code is >> enclosed here, which worked with LLVM 2.8. Hope it is helpful. >> >> MemoryProfiling.cpp---the instrumentation pass, which inserts >> profiling function calls into the original program >> MemoryProfiling.c---the profiling library containing the profiling >> calls >> llvm-memory-profiling.patch---the other modifications >> notes.txt---some i...
2011 Sep 29
2
[LLVMdev] Instrumenting C/C++ programs
...at gmail.com>wrote: >> >>> Hi, Himanshu. I once wrote an LLVM IR-based memory profiling >>> pass. Basically, I followed the code for EdgeProfiling. The source code is >>> enclosed here, which worked with LLVM 2.8. Hope it is helpful. >>> >>> MemoryProfiling.cpp---the instrumentation pass, which inserts >>> profiling function calls into the original program >>> MemoryProfiling.c---the profiling library containing the profiling >>> calls >>> llvm-memory-profiling.patch---the other modifications >>>...
2011 Sep 29
0
[LLVMdev] Instrumenting C/C++ programs
...d, Sep 28, 2011 at 6:49 AM, xiaoming gu <xiaoming.gu at gmail.com> wrote: > Hi, Himanshu. I once wrote an LLVM IR-based memory profiling pass. Basically, I followed the code for EdgeProfiling. The source code is enclosed here, which worked with LLVM 2.8. Hope it is helpful. > > MemoryProfiling.cpp---the instrumentation pass, which inserts profiling function calls into the original program > MemoryProfiling.c---the profiling library containing the profiling calls > llvm-memory-profiling.patch---the other modifications > notes.txt---some information collected when I w...
2007 Aug 31
0
Semi-OT: any tips on how to track down memory leaks?
hello list! i seem to have a serious memory leak in my rails app that i run with a bunch of mongrels on windows (as services). i tried the MemoryProfiler i found at http://scottstuff.net/blog/articles/2006/08/17/memory-leak-profiling-with-rails but honestly i have no idea on how to read those string dumps. i tried diffing them but nothing there made any sense to me. any tips or hints would be
2011 Nov 17
1
[LLVMdev] Instrumenting C/C++ programs
...gt;>> >>>> Hi, Himanshu. I once wrote an LLVM IR-based memory profiling >>>> pass. Basically, I followed the code for EdgeProfiling. The source code is >>>> enclosed here, which worked with LLVM 2.8. Hope it is helpful. >>>> >>>> MemoryProfiling.cpp---the instrumentation pass, which inserts >>>> profiling function calls into the original program >>>> MemoryProfiling.c---the profiling library containing the profiling >>>> calls >>>> llvm-memory-profiling.patch---the other modifications...
2006 Aug 28
3
memory leaks
what causes ''em? How do I spot ''em? How can I fix them? I''ve got several apps running on textdrive, and they''re all consuming too much memory and being killed all the time. I''m still a relative n00b to Rails, and not sure how to go about fixing them. When I look in the dev/production logs, I don''t see any obvious errors in my code, so what