Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple example to profile a function or similar construct #10

Open
rask opened this issue Sep 4, 2019 · 2 comments
Open

A simple example to profile a function or similar construct #10

rask opened this issue Sep 4, 2019 · 2 comments

Comments

@rask
Copy link

rask commented Sep 4, 2019

As the way stat works is quite different from things like Xdebug that just dump a valgrind blob that can be parsed after the fact, a short example could ease in developers who wish to try stat, but are used to valgrind tooling.

It would be helpful to have a small example of a stat client (even in pseudo-code) that displays how to aggregate and parse the frame data that the stat socket outputs, in order to see how a function or a class is performing.

Or is this on a roadmap, but is post-poned until stat is more developed in terms of features and polish?

@krakjoe
Copy link
Owner

krakjoe commented Sep 7, 2019

It's a good question ...

Right now, I'm focused on the internals of stat, the format of data over the wire and so on. It's quite fast moving and likely to change (#7).

In addition, I'm hoping that collaborators will come forward to help shape data and API ...

I think I'll aim to start writing some Wiki pages sometime soon, about the general differences between a conventional profiler and stat and the different applications the data might have (it's not restricted to a profiler).

@rask
Copy link
Author

rask commented Sep 9, 2019

I see, sounds like a solid plan. Let me know if you need help in validating Wiki contents when you begin working on them. I will try and see how a stat client could work and see if I can be of any help there if I have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants