- 122,603
- non-test, non-generated
- 257,302
- 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 | 15,532 | 3% | 857 |
| File.Close | 12,586 | 8% | 1,052 |
| Stat | 10,186 | 20% | 775 |
| Exit | 8,280 | 6% | 834 |
| ReadFile | 8,089 | 12% | 721 |
| IsNotExist | 7,044 | 16% | 618 |
| Open | 5,361 | 9% | 904 |
| MkdirAll | 5,117 | 10% | 611 |
| Remove | 4,875 | 17% | 739 |
| WriteFile | 4,198 | 11% | 560 |
| File.Name | 3,239 | 9% | 624 |
| RemoveAll | 3,099 | 13% | 561 |
| Create | 2,674 | 6% | 663 |
| OpenFile | 2,612 | 8% | 572 |
| ReadDir | 1,977 | 13% | 372 |
| File.Fd | 1,612 | 7% | 326 |
| File.Write | 1,569 | 13% | 543 |
| Environ | 1,532 | 3% | 406 |
| LookupEnv | 1,486 | 8% | 396 |
| Rename | 1,270 | 14% | 350 |
| Getwd | 1,126 | 2% | 424 |
| File.WriteString | 1,112 | 28% | 374 |
| Lstat | 1,046 | 25% | 225 |
| Setenv | 1,012 | 15% | 451 |
| MkdirTemp | 996 | 2% | 340 |
| CreateTemp | 961 | 3% | 434 |
| File.Stat | 882 | 5% | 336 |
| Getpid | 710 | 3% | 262 |
| File.Seek | 703 | 12% | 262 |
| UserHomeDir | 691 | 2% | 155 |
| Chmod | 687 | 7% | 271 |
| File.Sync | 644 | 4% | 231 |
| TempDir | 588 | 3% | 352 |
| Hostname | 530 | 1% | 224 |
| Mkdir | 519 | 15% | 328 |
| Process.Kill | 449 | 10% | 206 |
| Readlink | 434 | 29% | 163 |
| Process.Signal | 429 | 19% | 187 |
| Executable | 406 | <1% | 185 |
| IsExist | 375 | 23% | 164 |
| File.Read | 353 | 40% | 222 |
| ProcessState.ExitCode | 346 | 8% | 168 |
| Symlink | 323 | 21% | 254 |
| NewFile | 316 | 10% | 100 |
| Getuid | 298 | 2% | 130 |
| Chdir | 286 | 6% | 189 |
| Pipe | 239 | 3% | 188 |
| FindProcess | 218 | 16% | 107 |
| Unsetenv | 211 | 27% | 281 |
| File.Truncate | 200 | 7% | 137 |
| ExpandEnv | 189 | 18% | 69 |
| IsPermission | 189 | 16% | 95 |
| File.Readdirnames | 187 | 7% | 125 |
| DirFS | 186 | 5% | 106 |
| Chown | 186 | 12% | 65 |
| Geteuid | 180 | 2% | 93 |
| Chtimes | 172 | 16% | 153 |
| File.ReadAt | 156 | 29% | 74 |
| NewSyscallError | 153 | 7% | 30 |
| SameFile | 140 | 22% | 84 |
| File.Chmod | 140 | 5% | 88 |
| ProcessState.Sys | 127 | 3% | 84 |
| Root.Close | 122 | 3% | 29 |
| OpenRoot | 111 | 4% | 32 |
| File.WriteAt | 98 | 21% | 64 |
| Getpagesize | 97 | 2% | 48 |
| UserCacheDir | 95 | 1% | 43 |
| IsPathSeparator | 94 | 38% | 31 |
| Process.Wait | 93 | 12% | 71 |
| File.Readdir | 86 | 20% | 68 |
| Link | 83 | 23% | 75 |
| UserConfigDir | 80 | 1% | 44 |
| Getgid | 72 | 1% | 57 |
| Expand | 71 | 27% | 42 |
| Signal.String | 68 | 34% | 36 |