- 125,571
- non-test, non-generated
- 261,913
- total callsites
- 75
- ranked in this snapshot
- std
- standard-library
Functions in os
Ranked by production calls. The bar scales each function against the
busiest in this package.
| Function | Prod calls | In loop | Modules |
| Getenv | 17,926 | 2% | 858 |
| File.Close | 12,672 | 8% | 1,055 |
| Stat | 10,235 | 20% | 777 |
| Exit | 8,340 | 6% | 836 |
| ReadFile | 8,113 | 12% | 722 |
| IsNotExist | 7,084 | 16% | 620 |
| Open | 5,380 | 9% | 905 |
| MkdirAll | 5,131 | 10% | 615 |
| Remove | 4,894 | 17% | 744 |
| WriteFile | 4,205 | 11% | 564 |
| File.Name | 3,257 | 9% | 630 |
| RemoveAll | 3,119 | 13% | 563 |
| Create | 2,686 | 6% | 666 |
| OpenFile | 2,622 | 8% | 572 |
| ReadDir | 1,998 | 13% | 377 |
| File.Fd | 1,619 | 7% | 326 |
| File.Write | 1,582 | 13% | 548 |
| Environ | 1,536 | 3% | 409 |
| LookupEnv | 1,486 | 8% | 396 |
| Rename | 1,271 | 14% | 354 |
| Getwd | 1,125 | 2% | 426 |
| File.WriteString | 1,115 | 28% | 374 |
| Lstat | 1,065 | 26% | 226 |
| Setenv | 1,013 | 15% | 449 |
| MkdirTemp | 1,005 | 2% | 342 |
| CreateTemp | 967 | 3% | 439 |
| File.Stat | 895 | 5% | 336 |
| Getpid | 717 | 3% | 264 |
| File.Seek | 711 | 12% | 265 |
| UserHomeDir | 696 | 2% | 156 |
| Chmod | 691 | 7% | 274 |
| File.Sync | 655 | 4% | 233 |
| TempDir | 593 | 3% | 354 |
| Hostname | 531 | 1% | 225 |
| Mkdir | 519 | 15% | 329 |
| Process.Kill | 456 | 11% | 210 |
| Readlink | 439 | 29% | 165 |
| Process.Signal | 429 | 19% | 187 |
| Executable | 407 | <1% | 185 |
| IsExist | 377 | 23% | 165 |
| File.Read | 354 | 40% | 222 |
| ProcessState.ExitCode | 347 | 8% | 169 |
| Symlink | 322 | 21% | 256 |
| NewFile | 319 | 10% | 103 |
| Getuid | 298 | 2% | 130 |
| Chdir | 286 | 6% | 190 |
| Pipe | 241 | 2% | 190 |
| FindProcess | 221 | 15% | 108 |
| Unsetenv | 212 | 27% | 281 |
| File.Truncate | 203 | 7% | 138 |
| IsPermission | 191 | 16% | 95 |
| ExpandEnv | 189 | 18% | 69 |
| File.Readdirnames | 187 | 7% | 125 |
| DirFS | 186 | 5% | 107 |
| Chown | 186 | 12% | 65 |
| Geteuid | 181 | 2% | 94 |
| Chtimes | 172 | 16% | 153 |
| File.ReadAt | 157 | 30% | 74 |
| NewSyscallError | 155 | 7% | 30 |
| SameFile | 147 | 21% | 85 |
| File.Chmod | 142 | 5% | 89 |
| Root.Close | 129 | 3% | 31 |
| ProcessState.Sys | 127 | 3% | 84 |
| OpenRoot | 118 | 3% | 34 |
| File.WriteAt | 98 | 21% | 64 |
| Getpagesize | 97 | 2% | 48 |
| UserCacheDir | 95 | 1% | 43 |
| IsPathSeparator | 95 | 38% | 32 |
| Process.Wait | 93 | 12% | 71 |
| File.Readdir | 86 | 20% | 68 |
| Link | 83 | 23% | 75 |
| UserConfigDir | 81 | 1% | 44 |
| Getgid | 72 | 1% | 57 |
| Expand | 71 | 27% | 42 |
| Signal.String | 68 | 34% | 36 |