-
Notifications
You must be signed in to change notification settings - Fork 79
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
profile bot runs #1066
Comments
Hi, what bout using |
OK, besides just to check: when you say the |
all of the code that makes prs |
I think that is just |
sounds right yes! |
I think the main thing to profile is all the code in auto_tick.py since this is where the PRs are made (and the migrations are actually performed). |
Yup, you are alright I thought about that but I was not sure if we would profile the migration too, thanks for the comment. |
I would profile everything, we need a better view of what is slow so we can fix it. |
What do you think ? #1071 |
i'd be great to see the profile data. |
Inside the client logs ? |
the profiler outputs data on what is taking time. i'd be great to have us all look at that data together. |
Yup, I agree with you, but I don't get your point, the code is supposed to output the data into a file and them use another tool to see it's information more graphically, but if it's needed to output the data at the terminal window it's also possible. The idea to output the data, was cause this way we can monitor all the function calls and times in a graph, to compare the using memory and other informations |
yup. So can you run the profiler on the code and attach the data here? |
it's possible, Matt is |
yes, you can install it via |
Oh, thanks I was not sure if |
Sorry for the delay, I am having some issues with relative imports. Do you know if this a common mistake I am doing ? |
I'd need a code sample. They only work within packages. |
An example could be |
hmm that should work as long as you are in a package |
Yes,It's been happening a long time, but with minor scripts that I could just one by one remove the inconsistencies but for |
With a big help of CJ and Matt, we could finish the tests with the profiler and receive the first outputs 🎉 |
Now that it's working, we should try to visualize it, I recommend the SnakeViz because of it's browser adaptation. Also, I will try to insert the |
Great! Let's chat about the results tomorrow. |
I think we can set this done right ? |
Let's wait until we have profiled the PR json steps too. |
If possible, give a check to #1110 |
We should profile the run of the bot code to see where we are spending most of our time.
The text was updated successfully, but these errors were encountered: