Skip to content

Commit

Permalink
Merge pull request #125 from timholy/teh/precompile
Browse files Browse the repository at this point in the history
Add some precompiles
  • Loading branch information
timholy authored Dec 29, 2019
2 parents 8980b8d + fb2f761 commit 0272f50
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ os:
julia:
- 0.7
- 1.0
- 1.1
- 1.2
- 1
- nightly
notifications:
email: false
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[compat]
Cairo = "0.5, 0.6, 0.7, 0.8, 1"
Colors = "0.9"
Colors = "0.9, 0.10, 0.11"
FileIO = "1"
Graphics = "0.2, 0.3, 0.4, 1"
Gtk = "0.16, 0.17, 0.18, 1"
Expand Down
2 changes: 2 additions & 0 deletions src/ProfileView.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,5 +452,7 @@ function tree_aggregate(data::Vector{UInt})
return (bt, counts)
end

include("precompile.jl")
_precompile_()

end
5 changes: 5 additions & 0 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function _precompile_()
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
precompile(Tuple{typeof(prepare_image),Vector{Vector{UInt}},Vector{UInt},Vector{Int},Dict{UInt,Vector{Base.StackTraces.StackFrame}},Vector{Vector{Base.StackTraces.StackFrame}},Bool,Bool,Bool,Vector{Any}})
precompile(Tuple{typeof(hcat),Vector{TagData},Vector{TagData},Vector{TagData},Vararg{Vector{TagData},N} where N})
end

0 comments on commit 0272f50

Please sign in to comment.