phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

800
active users

Stan

Testing xtc new `trace` command that wraps PHP script execution into xDebug tracing mode and automatically converts .xt dump into chrome trace .json format.

./vendor/bin/xtc trace --cmd="bin/magento"

twitter.com/Ilnytskyi_sv2/stat

@ilnytskyi I've recently added the flamegraph stack format to tracing. Would it make sense to have xdebug directly create this format as well?

@derickr Yes. I saw your presentation of flamegraph and it's great addition. But timelines are more precise for stack trace analysis, reverse engineering and performance analysis.
So I think that having native support for Trace Event Format would be great. Because now, in my opinion, tracing mode is underestimated and hard to use feature of xdebug. Devs have to use more convenient tools like blackfire or spx to get the timeline view.

@derickr from the other hand if current flamegraph format actually produces a timeline. And can be directly dropped into speedscope.app/ then there is no need to have one more format that does the same.

www.speedscope.appspeedscope

@ilnytskyi I'll go check next week. I know VS Code can visualise the chrome thing too regardless. So it might be nice to have too.