> very nice...now we just need someone to write a tool that will record > the entry & exit every time a function is called, as well as a timestamp > (from getTimer()), then process all this data to profile your app, > giving output similar to the gprof tool. > > % cumulative self self total > time seconds seconds calls ms/call ms/call name > 17.7 3.72 3.72 13786208 0.00 0.00 Ns_DStringNAppend [8] > 6.1 > 5.00 1.28 107276 0.01 0.03 MakePath [10] > 2.9 5.60 0.60 1555972 0.00 0.00 Ns_DStringFree [35] > 2.7 6.18 0.58 1555965 0.00 0.00 Ns_DStringInit [36] > > 2.3 6.67 0.49 1507858 0.00 0.00 ns_realloc [40] > [example pulled from random webpage] > > That would be helpful for finding bottlenecks in your code.
The problem is that for very small function getting called often, the overhead of timestamp operations will be too much big and will greatly increase the weight of theses functions in the profile report. Unless you run some benchmark first to deduce the cost of the 2 getTimers and subtract it from the time spent in function. Nicolas _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
