Skip to content

Commit

Permalink
Merge pull request JuliaLang#8639 from JuliaLang/sf/profile_flat
Browse files Browse the repository at this point in the history
Purge C samples before counting samples when printing flat Profile data
  • Loading branch information
timholy committed Oct 9, 2014
2 parents d2d0a1b + 96c7bc3 commit a43df82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/profile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ function parse_flat(iplist, n, lidict, C::Bool)
end

function flat{T<:Unsigned}(io::IO, data::Vector{T}, lidict::Dict, C::Bool, combine::Bool, cols::Integer)
if !C
data = purgeC(data, lidict)
end
iplist, n = count_flat(data)
if isempty(n)
warning_empty()
Expand Down

0 comments on commit a43df82

Please sign in to comment.