Skip to content
callcount

package

os

standard library

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

Docs on pkg.go.dev ↗

prod calls
125,571
non-test, non-generated
all calls
261,913
total callsites
functions
75
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 17,926
File.Close 12,672
Stat 10,235
Exit 8,340
ReadFile 8,113
IsNotExist 7,084
Open 5,380
MkdirAll 5,131
Remove 4,894
WriteFile 4,205
File.Name 3,257
RemoveAll 3,119
Create 2,686
OpenFile 2,622
ReadDir 1,998
File.Fd 1,619
File.Write 1,582
Environ 1,536
LookupEnv 1,486
Rename 1,271
Getwd 1,125
File.WriteString 1,115
Lstat 1,065
Setenv 1,013
MkdirTemp 1,005
CreateTemp 967
File.Stat 895
Getpid 717
File.Seek 711
UserHomeDir 696
Chmod 691
File.Sync 655
TempDir 593
Hostname 531
Mkdir 519
Process.Kill 456
Readlink 439
Process.Signal 429
Executable 407
IsExist 377
File.Read 354
ProcessState.ExitCode 347
Symlink 322
NewFile 319
Getuid 298
Chdir 286
Pipe 241
FindProcess 221
Unsetenv 212
File.Truncate 203
IsPermission 191
ExpandEnv 189
File.Readdirnames 187
DirFS 186
Chown 186
Geteuid 181
Chtimes 172
File.ReadAt 157
NewSyscallError 155
SameFile 147
File.Chmod 142
Root.Close 129
ProcessState.Sys 127
OpenRoot 118
File.WriteAt 98
Getpagesize 97
UserCacheDir 95
IsPathSeparator 95
Process.Wait 93
File.Readdir 86
Link 83
UserConfigDir 81
Getgid 72
Expand 71
Signal.String 68