arnaud-lb / php-memory-profiler

Memory profiler for PHP. Helps finding memory leaks in PHP scripts.
MIT License
865 stars 51 forks source link

Strange text in calls: "(todo.php)" #58

Closed Ziggizag closed 1 year ago

Ziggizag commented 3 years ago

You can see the QCacheGrind screenshot.

Any idea - is it a bug or a feature?

codedge commented 2 years ago

I get the same. @Ziggizag did you figure it out why that happens?

arnaud-lb commented 2 years ago

Hi @Ziggizag @codedge

The todo.php part is supposed to be a filename. IIRC it was required by the callgrind file format, but I didn't took the time to add the actual filename yet, so for now it's always todo.php :)

maximal commented 1 year ago

Seems like it’s not that complicated to add the filename: https://github.com/arnaud-lb/php-memory-profiler/blob/v3/memprof.c#L1418

Does php_stream have info about its file path?