Re: Instrumenting for a different profiling algorithm

2007-03-29 Thread Michael Veksler
Ian Lance Taylor wrote: It's really a lot easier to do this as a source code modification than as a compiler change. Unless you already have a lot of experience with the compiler, I think you'd be lucky or very good to get it done in two weeks. I have already done it as source code modification,

Instrumenting for a different profiling algorithm

2007-03-28 Thread Michael Veksler
Hello all, [Sorry for the excessively long mail. It contains introduction, problem explanation, solution and a set of how-to questions]. == Introduction == Because gprof is completely useless in some cases (see below), I had to develop (1999) a new profiling algorithm. Unfortunately, my

Re: Instrumenting for a different profiling algorithm

2007-03-28 Thread Ian Lance Taylor
Michael Veksler [EMAIL PROTECTED] writes: I would like to find how to force gcc (and its optimizers): 1. Not to move stuff across in_profiler=* assignments, for all optimizers. This was measured to skew profiling by 10-20% on x86 Linux, and more than x2 on tiny functions on