Dreaming of a Better Profiler

samtregar on 2004-05-25T19:29:00

Want to help me build a better Perl profiler? Or maybe just shoot some holes in my dumb ideas? Check out my write-up here:

      http://perlmonks.org/index.pl?node_id=356343

-sam


I did. But no more.

jaw on 2004-05-27T04:12:46

Once upon a time, I needed to profile some code.
I tried Devel::Dprof. It crashed. It produced
wrong answers. It was bad.
I tried a few other profilers off of cpan. They all
crashed. They all produced wrong answers.
I may have cried.

I sat and I sat, and I thought and I thought.
And then I wrote Devel::Profile.
It didn't crash. It produced reasonable answers.
It was good. I may have danced. I may have sang.

Try it. You'll like it. It's on CPAN.

Re:I did. But no more.

samtregar on 2004-05-27T04:28:56

Yeah, I did. I was pretty surprised. So what's the secret? How does Devel::Profile use the DB hooks but not crash when other DB profilers crash? I'm 99% certain that the crashes in Devel::DProf are really crashes in the DB debugger hooks. So how do you avoid them?

-sam

Re:I did. But no more.

jaw on 2004-05-27T13:45:48

the only "secrets" are keeping it really
really simple, programming like you're in a
china shop: be careful not to touch anything
that might fall and break.

Re:I did. But no more.

slanning on 2004-05-27T16:20:44

I hope to make it work with Bricolage, then. Thanks.

Re:I did. But no more.

slanning on 2004-05-28T09:22:43

Works. Yay.