-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Mod doesn't show up in profiler view unless it has the on_tick
event registered
#60
Comments
It doesn't report until it accumulates |
Hm, so is that the number of times it calls a certain function? Or is it the number of times it sampled some line in the mod? Because if it's about execution time then it should find my mod, as for a large selection it would normally take a couple of seconds (with processing code not shown here), but still does not show up. |
the number of times it makes a top level entry into that mod's lua |
Ah okay I guess that is the problem then |
Would it be possible to also take the execution time of each mod into account? |
not really, no. But you can just adjust |
It seems that a mod doesn't show up in the profiler flame panel if it has not registered an 'on tick' handler, even if it has an empty function.
Compare:
Without
on_tick
, I don't see my mod:With
on_tick
, ah there it is!:In both cases I'm selecting a number of large areas with my selection tool.
The text was updated successfully, but these errors were encountered: