Skip to content
callcount

package

os

standard library

73 standard-library functions from os, ranked by how often they are called outside tests and generated code.

Docs on pkg.go.dev ↗

prod calls
129,241
non-test, non-generated
all calls
278,906
total callsites
functions
73
ranked in this snapshot
origin
std
standard-library

members

Functions in os

Ranked by production calls. The bar scales each function against the busiest in this package.

Function Prod calls
Getenv 18,438
File.Close 13,197
Stat 10,445
Exit 8,426
ReadFile 8,399
IsNotExist 7,171
Open 5,457
MkdirAll 5,215
Remove 5,131
WriteFile 4,320
File.Name 3,404
RemoveAll 3,190
OpenFile 2,684
Create 2,672
ReadDir 2,074
File.Fd 1,687
File.Write 1,638
Environ 1,576
LookupEnv 1,526
Rename 1,368
Lstat 1,205
Getwd 1,129
File.WriteString 1,119
MkdirTemp 1,042
Setenv 1,037
CreateTemp 1,030
File.Stat 948
File.Seek 733
Getpid 732
Chmod 722
File.Sync 704
UserHomeDir 700
TempDir 605
Hostname 541
Mkdir 534
Process.Kill 466
Readlink 450
Process.Signal 428
Executable 422
IsExist 384
ProcessState.ExitCode 379
File.Read 362
NewFile 354
Symlink 324
Getuid 316
Chdir 284
Pipe 256
File.Truncate 223
FindProcess 217
Unsetenv 216
Root.Close 207
SameFile 203
Geteuid 202
Chown 193
File.Readdirnames 192
IsPermission 192
DirFS 188
ExpandEnv 180
Chtimes 179
File.Chmod 175
File.ReadAt 169
OpenRoot 158
NewSyscallError 155
ProcessState.Sys 128
File.WriteAt 115
UserCacheDir 103
IsPathSeparator 101
Getpagesize 99
Link 89
Process.Wait 88
File.Readdir 86
UserConfigDir 83
Getgid 76