[openbeos] Re: profiling

> Hi all,
> 
> could someone point me to some good guide(s) on profiling under BeOS? 
> I 
> have now tried several things on my list of accelerating Painter, 
> none 
> of them gave great improvement. I would like to know where exactly 
> the 
> bottlenecks are, but I have never really done much of this "real" 
> profiling stuff before.
> Painter is now implementing all drawing_modes and the pattern drawing 
> correctly, but it is much slower compared to BView. For random or 
> horizontal/vertical lines of 1 pixel width in B_OP_COPY / 
> B_SOLID_HIGH 
> mode: 10x without anti-aliasing, 39x with anti-aliasing. I'll keep at 
> it...
It's not very difficult, IMO, but it's been a while, so I'm a little 
fuzzy on certain specifics. If you're one of those types that prefers 
BeIDE (like me), you can go into Project Settings, choose 'Generate 
Profiling Code', and recompile. Once recompiled, run it and do 
whatever. Close the app and a file with a strange name -- it involves 
the process ID of the app when it was run. IIRC it is generated in 
either the same folder as the app or in the current working directory. 
Either way, jump into Terminal and use bprof. Usage is 'bprof <filename
>'. It should spit out the profiling info on the app when it was run. 
> HTH.

--DarkWyrm

Other related posts: