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

@proview includes ProfileView-related Gtk events.jl #148

Closed
IanButterworth opened this issue May 9, 2020 · 4 comments
Closed

@proview includes ProfileView-related Gtk events.jl #148

IanButterworth opened this issue May 9, 2020 · 4 comments

Comments

@IanButterworth
Copy link
Collaborator

Running @profview myfunc() gives this output, where Gtk.jl//src/events.jl, #237: line 2 dominates.

myfunc() has no Gtk usage, so must be an artifact of

Screenshot from 2020-05-09 14-04-07

julia master 44f3bb3fc6

@IanButterworth
Copy link
Collaborator Author

IanButterworth commented May 9, 2020

It doesn't occur when you do this:

using Profile
@profile myfunc()
@profile myfunc()
using ProfileView
ProfileView.view()

but it does if you load ProfileView before profiling:

using Profile, ProfileView
@profile myfunc()
@profile myfunc()
ProfileView.view()

@IanButterworth
Copy link
Collaborator Author

IanButterworth commented May 9, 2020

I can't replicate this replacing myfunc() with rand().

This might be invalidation-related.. and an edge case.. myfunc() was actually calling compilecache() on an isolated test module that contains nothing but a single unique function and no deps. Somehow compiling that example was triggering something in Gtk.

Edit: Perhaps it could be invalidation from the logging call in compilecache()

@timholy
Copy link
Owner

timholy commented Jun 3, 2020

I can't replicate this. Remember that @profile does not clear old results; you need to manually call Profile.clear().

Could also be JuliaGraphics/Gtk.jl#503? How are you starting Julia?

@timholy
Copy link
Owner

timholy commented Dec 10, 2020

Since this isn't replicable, let's close. (Reopen if it recurs.)

@timholy timholy closed this as completed Dec 10, 2020
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