php-memory-profiler icon indicating copy to clipboard operation
php-memory-profiler copied to clipboard

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

Open Ziggizag opened this issue 4 years ago • 2 comments

You can see the QCacheGrind screenshot.

Any idea - is it a bug or a feature?

Ziggizag avatar Jul 14 '21 14:07 Ziggizag

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

codedge avatar Nov 09 '21 10:11 codedge

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 :)

arnaud-lb avatar Nov 15 '21 12:11 arnaud-lb

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?

maximal avatar Jan 11 '23 11:01 maximal