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

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

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: Enhancement Contributes features or other improvements to PocketMine-MP

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: TODO Category: API Related to the plugin API labels Feb 11, 2018
@SOF3 SOF3 closed this as completed Mar 27, 2021
@pmmp pmmp locked and limited conversation to collaborators Mar 27, 2021
@dktapps dktapps added Type: Enhancement Contributes features or other improvements to PocketMine-MP and removed Type: To Do labels Nov 10, 2024
@dktapps dktapps reopened this Nov 12, 2024
@pmmp pmmp unlocked this conversation Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: API Related to the plugin API Type: Enhancement Contributes features or other improvements to PocketMine-MP
Projects
None yet
Development

No branches or pull requests

2 participants