On Solaris there is dtrace, Linux provides something similar, but I forget what it's called...there might be a port of dtrace for Linux.
System tap. --Carlos On Aug 31, 2012 3:22 PM, "Amit Uttamchandani" < amit.uttamchand...@my.csun.edu> wrote: > Hello, > > Would you be able to share your thoughts/experiences on performance > monitoring using hardware counters in Linux? > > I am currently using *perf* tools that come built in with the kernel to > measure the number of cycles a specific program takes. > > Now, I can't seem to figure out how to measure the number of cycles per > function call. For example, I would like to measure the number of cycles > it takes for SHA1_Update() from libcrypto when using the sha1 ASM > instructions compared to not using the sha1 ASM. > > Thanks, > Amit > >