try gprof,it mainly supports call graph, not sure whether
there is memory profile information. google gprof.
Or use sim-prof in simplescalar if you don't care the code
is native for x86 or not.
in addition, Pentium 4 has some hardware counters. You may
get some statistic data by reading those counters.
also, a tool named "pin" appearing in the www arch webpage
recently seems to be useful for profiling.
【 在 alphazju (我思故我在) 的大作中提到: 】
: 标 题: Re: linux下什么工具能够把程序对于内存的所有访问记录出来
: 发信站: BBS 水木清华站 (Tue Mar 8 12:27:54 2005), 站内
: Instrument every memory access instruction
: then run the trace through your own cache model
: 【 在 josuya (josuya) 的大作中提到: 】
: : 我想分析一个程序的cache行为,想把运行期间所有内存访问的地址记录下来进行分析。不知linux下什么工具能做到这一点。
: --