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

profiling .xonshrc #1

Open
RitikShah opened this issue Apr 21, 2022 · 3 comments
Open

profiling .xonshrc #1

RitikShah opened this issue Apr 21, 2022 · 3 comments

Comments

@RitikShah
Copy link

How exactly can I use this to profile my rc file, I want to know how I can speed up my boot time now that I've bogged everything down, but I don't exactly understand how to boot this before my xonshrc goes thru (esp understanding how long it takes to load each module!

@anki-code
Copy link
Owner

I think you can use old style for this:

t = time.time()
# my command
print(f"{time.time() - t} sec")

@RitikShah
Copy link
Author

I suppose I can do that for specific commands and maybe automate some profiling for my xontribs but I was hoping to see if xunter could help with giving me detailed timings for each part of my rc file.

@anki-code
Copy link
Owner

anki-code commented Apr 23, 2022

I believe that there is the way for this but I have no recipe now.

Feel free to add the instructions to README after research.

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