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

Duplicate output in atom #1

Closed
Arkoniak opened this issue Feb 3, 2020 · 0 comments · Fixed by #2
Closed

Duplicate output in atom #1

Arkoniak opened this issue Feb 3, 2020 · 0 comments · Fixed by #2

Comments

@Arkoniak
Copy link

Arkoniak commented Feb 3, 2020

Thank you very much for this package, I really like the idea! It would be really helpful to have more sophisticated Profiler.

As for the task, I can see strange behavior in atom, the output is getting printed twice:

using OwnTime
using Profile

function myfunc()
    A = rand(200, 200, 400)
    maximum(A)
end
myfunc()

@profile myfunc()

owntime()

# Output

julia>  [1]  75% => poptaskref(::Base.InvasiveLinkedListSynchronized{Task}) at task.jl:660
 [2]  16% => dsfmt_fill_array_close_open!(::Random.DSFMT.DSFMT_state, ::Ptr{Float64}, ::Int64) at DSFMT.jl:95
 [3]   4% => Array at boot.jl:408 [inlined]
 [4]   3% => _fast at reduce.jl:454 [inlined]
 [5]   1% => include_string(::Module, ::String, ::String) at loading.jl:1075
 [1]  75% => poptaskref(::Base.InvasiveLinkedListSynchronized{Task}) at task.jl:660
 [2]  16% => dsfmt_fill_array_close_open!(::Random.DSFMT.DSFMT_state, ::Ptr{Float64}, ::Int64) at DSFMT.jl:95
 [3]   4% => Array at boot.jl:408 [inlined]
 [4]   3% => _fast at reduce.jl:454 [inlined]
 [5]   1% => include_string(::Module, ::String, ::String) at loading.jl:1075

I suppose it interferes somehow with Atom internal functions, because everything is fine in Jupyter and REPL.

Atom version: https://gist.github.com/Arkoniak/cc487f4e57b2f2fc107bc888141651da

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

Successfully merging a pull request may close this issue.

1 participant