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

Add API for capturing timings of arbitrary methods/functions #2011

Closed
dktapps opened this issue Feb 11, 2018 · 0 comments
Closed

Add API for capturing timings of arbitrary methods/functions #2011

dktapps opened this issue Feb 11, 2018 · 0 comments
Labels
Category: API Related to the plugin API Type: Change Proposal RFCs (Request for Comments) on change ideas for PocketMine-MP Type: To Do

Comments

@dktapps
Copy link
Member

dktapps commented Feb 11, 2018

Issue description

Similarly to the DataPacket timings:

Timings::getMethodTimings(__METHOD__)->startTiming();
//do things
Timings::getMethodTimings(__METHOD__)->stopTiming();

This could be useful for debugging and timing on the fly, as well as be useful for plugin developers.

@dktapps dktapps added Type: To Do Category: API Related to the plugin API Type: Change Proposal RFCs (Request for Comments) on change ideas for PocketMine-MP labels Feb 11, 2018
@SOF3 SOF3 closed this as completed Mar 27, 2021
@pmmp pmmp locked and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Category: API Related to the plugin API Type: Change Proposal RFCs (Request for Comments) on change ideas for PocketMine-MP Type: To Do
Projects
None yet
Development

No branches or pull requests

2 participants