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

Determining which scripts are using the most time for processing via hooking... #7181

Open
mikeggh opened this issue Mar 11, 2024 · 2 comments

Comments

@mikeggh
Copy link

mikeggh commented Mar 11, 2024

Brief summary of issue / Description of requested feature:

I have created a script to help find portions of Mudlet aliases, triggers, or scripts that are using extensive CPU usage measured in time.

Steps to reproduce the issue / Reasons for adding feature:

  1. https://gist.github.com/mikeggh/ae5bb83e435c2e251bcbc395fe7e4c4b
  2. Drop that script into a new script in 'Scripts.'
  3. Save it, and a window should pop up.
  4. Click hook.
  5. Do various mudlet activities on your game.
  6. Click results, and see which scripts are using the most time.

Error output / Expected result of feature

This is something I had designed to find a problem for someone on their mudlet, and I thought the mudlet team may be interested.

Extra information, such as the Mudlet version, operating system and ideas for how to solve / implement:

It uses internal mudlet hooks, all are legal mudlet language operations, and doesn't require extensive frameworks on top. It could be a little buggy. I was unsure if it would ever be of use outside of my own needs. If there is a need to tidy it up then let me know.

@mikeggh
Copy link
Author

mikeggh commented Mar 11, 2024

image
This is an example of it functioning...

@mikeggh mikeggh closed this as completed Mar 11, 2024
@mikeggh mikeggh reopened this Mar 11, 2024
@ZookaOnGit
Copy link
Contributor

I have added this script to the wiki

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