Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions base/sysinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,10 @@ function _cpu_summary(io::IO, cpu::AbstractVector{CPUinfo}, i, j)
end

"""
Sys.cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = cpu_info())
Sys.cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = Sys.cpu_info())
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps we should remove the whitespaces in the second keyword argument? It took me quite a few seconds to parse that line and to see whether there is an assignment going on here...

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea.


Print a summary of information about each processor in `cpu` gathered from [`cpu_info](@ref). This is generally:
Print a summary of information about each processor in `cpu` gathered from [`Sys.cpu_info`](@ref).
This is generally:
- Its index in the `cpu` vector
- The CPU model
- The CPU speed
Expand Down