Skip to content

Commit

Permalink
Merge pull request #19999 from malmaud/jmm/whos
Browse files Browse the repository at this point in the history
Don't show built-in modules in whos()
  • Loading branch information
malmaud authored Jan 16, 2017
2 parents ca3b06e + a6f2788 commit a1f232e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions base/interactiveutil.jl
Original file line number Diff line number Diff line change
Expand Up @@ -681,17 +681,20 @@ function whos(io::IO=STDOUT, m::Module=current_module(), pattern::Regex=r"")
value = getfield(m, v)
@printf head "%30s " s
try
bytes = summarysize(value)
if bytes < 10_000
@printf(head, "%6d bytes ", bytes)
if value (Base, Main, Core)
print(head, " ")
else
@printf(head, "%6d KB ", bytes ÷ (1024))
bytes = summarysize(value)
if bytes < 10_000
@printf(head, "%6d bytes ", bytes)
else
@printf(head, "%6d KB ", bytes ÷ (1024))
end
end
print(head, summary(value))
catch e
print(head, "#=ERROR: unable to show value=#")
end

newline = search(head, UInt8('\n')) - 1
if newline < 0
newline = nb_available(head)
Expand Down

2 comments on commit a1f232e

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily benchmark build, I will reply here when finished:

@nanosoldier runbenchmarks(ALL, isdaily = true)

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels

Please sign in to comment.