- 129,241
- non-test, non-generated
- 278,906
- total callsites
- 73
- 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 | 18,438 | 2% | 862 |
| File.Close | 13,197 | 8% | 1,059 |
| Stat | 10,445 | 20% | 779 |
| Exit | 8,426 | 6% | 839 |
| ReadFile | 8,399 | 12% | 734 |
| IsNotExist | 7,171 | 17% | 624 |
| Open | 5,457 | 9% | 908 |
| MkdirAll | 5,215 | 9% | 623 |
| Remove | 5,131 | 17% | 745 |
| WriteFile | 4,320 | 11% | 574 |
| File.Name | 3,404 | 9% | 635 |
| RemoveAll | 3,190 | 12% | 568 |
| OpenFile | 2,684 | 7% | 577 |
| Create | 2,672 | 6% | 668 |
| ReadDir | 2,074 | 13% | 391 |
| File.Fd | 1,687 | 7% | 331 |
| File.Write | 1,638 | 12% | 555 |
| Environ | 1,576 | 3% | 424 |
| LookupEnv | 1,526 | 8% | 399 |
| Rename | 1,368 | 13% | 365 |
| Lstat | 1,205 | 25% | 242 |
| Getwd | 1,129 | 2% | 427 |
| File.WriteString | 1,119 | 28% | 381 |
| MkdirTemp | 1,042 | 2% | 346 |
| Setenv | 1,037 | 15% | 446 |
| CreateTemp | 1,030 | 3% | 446 |
| File.Stat | 948 | 5% | 344 |
| File.Seek | 733 | 12% | 271 |
| Getpid | 732 | 3% | 272 |
| Chmod | 722 | 7% | 288 |
| File.Sync | 704 | 5% | 239 |
| UserHomeDir | 700 | 2% | 161 |
| TempDir | 605 | 3% | 356 |
| Hostname | 541 | 1% | 226 |
| Mkdir | 534 | 15% | 349 |
| Process.Kill | 466 | 11% | 215 |
| Readlink | 450 | 29% | 173 |
| Process.Signal | 428 | 19% | 190 |
| Executable | 422 | <1% | 200 |
| IsExist | 384 | 24% | 168 |
| ProcessState.ExitCode | 379 | 8% | 177 |
| File.Read | 362 | 41% | 224 |
| NewFile | 354 | 10% | 105 |
| Symlink | 324 | 21% | 277 |
| Getuid | 316 | 2% | 137 |
| Chdir | 284 | 6% | 190 |
| Pipe | 256 | 3% | 203 |
| File.Truncate | 223 | 7% | 147 |
| FindProcess | 217 | 16% | 108 |
| Unsetenv | 216 | 26% | 289 |
| Root.Close | 207 | 3% | 47 |
| SameFile | 203 | 23% | 100 |
| Geteuid | 202 | 2% | 111 |
| Chown | 193 | 11% | 68 |
| File.Readdirnames | 192 | 7% | 130 |
| IsPermission | 192 | 16% | 95 |
| DirFS | 188 | 5% | 114 |
| ExpandEnv | 180 | 19% | 69 |
| Chtimes | 179 | 15% | 162 |
| File.Chmod | 175 | 4% | 103 |
| File.ReadAt | 169 | 30% | 79 |
| OpenRoot | 158 | 3% | 51 |
| NewSyscallError | 155 | 7% | 32 |
| ProcessState.Sys | 128 | 3% | 88 |
| File.WriteAt | 115 | 24% | 68 |
| UserCacheDir | 103 | <1% | 49 |
| IsPathSeparator | 101 | 36% | 36 |
| Getpagesize | 99 | 2% | 49 |
| Link | 89 | 24% | 81 |
| Process.Wait | 88 | 13% | 73 |
| File.Readdir | 86 | 20% | 68 |
| UserConfigDir | 83 | 1% | 46 |
| Getgid | 76 | 1% | 58 |