Skip to content

Commit

Permalink
Revert "Document some exported Sys CPU stuff (#31204)" (#32808)
Browse files Browse the repository at this point in the history
Revert "Document some exported Sys CPU stuff (#31204)"
  • Loading branch information
staticfloat authored Aug 6, 2019
2 parents e891bca + 59ccc77 commit 8aeb398
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
23 changes: 1 addition & 22 deletions base/sysinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ See Hwloc.jl or CpuId.jl for extended information, including number of physical
"""
CPU_THREADS = 1 # for bootstrap, changed on startup

"""
Sys.CPU_NAME
The name of the host CPU as a string.
"""
CPU_NAME = "" # for bootstrap, changed on startup

"""
Sys.ARCH
Expand Down Expand Up @@ -195,15 +188,6 @@ function _cpu_summary(io::IO, cpu::AbstractVector{CPUinfo}, i, j)
println(io)
end

"""
Sys.cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = cpu_info())
Print a summary of information about each processor in `cpu` gathered from [`cpu_info](@ref). This is generally:
- Its index in the `cpu` vector
- The CPU model
- The CPU speed
- The amount of time spent in `user`, `nice`, `sys`, `idle`, and `irq` modes
"""
function cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = cpu_info())
model = cpu[1].model
first = 1
Expand All @@ -216,11 +200,6 @@ function cpu_summary(io::IO=stdout, cpu::AbstractVector{CPUinfo} = cpu_info())
_cpu_summary(io, cpu, first, length(cpu))
end

"""
Sys.cpu_info()
Gather information about all CPUs in the system through a syscall using LibUV.
"""
function cpu_info()
UVcpus = Ref{Ptr{UV_cpu_info_t}}()
count = Ref{Int32}()
Expand All @@ -237,7 +216,7 @@ end
"""
Sys.uptime()
Get the current system uptime in seconds.
Gets the current system uptime in seconds.
"""
function uptime()
uptime_ = Ref{Float64}()
Expand Down
2 changes: 0 additions & 2 deletions doc/src/base/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ Base.@elapsed
Base.@allocated
Base.EnvDict
Base.ENV
Base.Sys.cpu_summary
Base.Sys.cpu_info
Base.Sys.isunix
Base.Sys.isapple
Base.Sys.islinux
Expand Down
1 change: 0 additions & 1 deletion doc/src/base/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Base.DEPOT_PATH
Base.LOAD_PATH
Base.Sys.BINDIR
Base.Sys.CPU_THREADS
Base.Sys.CPU_NAME
Base.Sys.WORD_SIZE
Base.Sys.KERNEL
Base.Sys.ARCH
Expand Down

0 comments on commit 8aeb398

Please sign in to comment.