Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/VKCOM/nocc
/ functions
Functions
508 in github.com/VKCOM/nocc
⨍
Functions
508
◇
Types & classes
86
↓ 48 callers
Method
Info
(verbosity int, v ...interface{})
internal/common/logger.go:47
↓ 43 callers
Method
Error
(v ...interface{})
internal/common/logger.go:53
↓ 34 callers
Method
writeStat
(statName string, value int64)
internal/server/statsd.go:50
↓ 20 callers
Method
Close
()
internal/server/statsd.go:118
↓ 17 callers
Function
file_pb_nocc_protobuf_proto_rawDescGZIP
()
pb/nocc-protobuf.pb.go:1292
↓ 12 callers
Function
failedStart
(message string, err error)
cmd/nocc-server/main.go:16
↓ 11 callers
Function
execute_cxx_locally
execute_cxx_locally() replaces current process (nocc.cpp) with a cxx process it's called when a daemon is unavailable or for linking (for linking, noc
cmd/nocc.cpp:90
↓ 9 callers
Function
CmdEnvBool
(usage string, def bool, cmdFlagName string, envName string)
internal/common/cmd-env-flags.go:187
↓ 9 callers
Method
FallbackToLocalCxx
(req DaemonSockRequest, reason error)
internal/client/daemon.go:257
↓ 8 callers
Function
CmdEnvString
(usage string, def string, cmdFlagName string, envName string)
internal/common/cmd-env-flags.go:180
↓ 7 callers
Function
CmdEnvInt
(usage string, def int64, cmdFlagName string, envName string)
internal/common/cmd-env-flags.go:194
↓ 7 callers
Function
GetVersion
()
internal/common/version.go:6
↓ 7 callers
Method
Recv
()
pb/nocc-protobuf_grpc.pb.go:156
↓ 7 callers
Method
Send
(*DumpLogsReply)
pb/nocc-protobuf_grpc.pb.go:367
↓ 7 callers
Function
failedStart
(err interface{})
cmd/nocc-daemon/main.go:14
↓ 7 callers
Function
strChr
(buffer []byte, chr byte, bufferSize int, offset int)
internal/client/own-includes-parser.go:48
↓ 6 callers
Function
ExtractRemoteHostWithoutPort
(remoteHostPort string)
internal/client/remote-connection.go:31
↓ 5 callers
Method
AddHFileInfo
(hFileName string, fileSize int64, fileSHA256 common.SHA256, nestedIncludes []string)
internal/client/includes-cache.go:65
↓ 5 callers
Method
AsCxxArgs
()
internal/client/include-dirs.go:28
↓ 5 callers
Method
Clear
()
internal/client/grpc-client.go:40
↓ 5 callers
Method
MapClientFileNameToServerAbs
MapClientFileNameToServerAbs converts a client file name to an absolute path on server. For example, /proj/1.cpp maps to /tmp/nocc/cpp/clients/{client
internal/server/client.go:78
↓ 5 callers
Function
ReplaceFileExt
(fileName string, newExt string)
internal/common/filesystem.go:23
↓ 5 callers
Method
String
()
internal/common/cmd-env-flags.go:115
↓ 5 callers
Method
ToLongHexString
()
internal/common/sha256-struct.go:32
↓ 5 callers
Method
getEnvName
()
internal/common/cmd-env-flags.go:19
↓ 5 callers
Method
onHashInclude
onHashInclude is a handler when we reached #include "arg" it finds what full path "arg" actually points to and processes that file recursively
internal/client/own-includes-parser.go:101
↓ 5 callers
Function
pathAbs
(cwd string, relPath string)
internal/client/invocation.go:67
↓ 5 callers
Function
prepareEmptyDir
prepareEmptyDir ensures that serverDir exists and is empty it's executed on server launch as a consequence, all file caches are lost on restart
cmd/nocc-server/main.go:24
↓ 5 callers
Function
runGccWithNoccAndCompareOutputDepfiles
(t *testing.T, cmdLineStr string, dirToClear string, expectedOutDFileName string)
tests/depfiles_test.go:51
↓ 4 callers
Method
ActiveCount
()
internal/server/clients-storage.go:126
↓ 4 callers
Method
AddTiming
(nameOfDoneStep string)
internal/client/invocation-summary.go:36
↓ 4 callers
Method
DoneRecvObj
(err error)
internal/client/invocation.go:244
↓ 4 callers
Method
GetBytesOnDisk
()
internal/server/file-cache.go:147
↓ 4 callers
Method
GetClient
(clientID string)
internal/server/clients-storage.go:35
↓ 4 callers
Method
GetFilesCount
()
internal/server/file-cache.go:140
↓ 4 callers
Function
MakeGRPCClient
(remoteHostPort string)
internal/client/grpc-client.go:18
↓ 4 callers
Function
MakeSHA256Struct
(hasher hash.Hash)
internal/common/sha256-struct.go:43
↓ 4 callers
Method
OnRemoteBecameUnavailable
(remoteHostPost string, reason error)
internal/client/daemon.go:171
↓ 4 callers
Method
StartCompilationSession
(ctx context.Context, in *StartCompilationSessionRequest, opts ...grpc.CallOption)
pb/nocc-protobuf_grpc.pb.go:23
↓ 4 callers
Function
createClientAndEmulateDaemonForTesting
(cmdLineStr string)
tests/testing_utils.go:11
↓ 4 callers
Function
escapeMakefileSpaces
escapeMakefileSpaces outputs a string which slashed spaces
internal/client/dep-files.go:182
↓ 4 callers
Function
formatStr
(prefix string, v ...interface{})
internal/common/logger.go:43
↓ 4 callers
Method
getCmdName
()
internal/common/cmd-env-flags.go:18
↓ 4 callers
Function
isSourceFileName
(fileName string)
internal/client/invocation.go:53
↓ 4 callers
Function
runCmdLocallyForTesting
(cmdLineStr string)
tests/testing_utils.go:34
↓ 3 callers
Function
CalcSHA256OfFile
CalcSHA256OfFile reads the opened file up to end and returns its sha256 and contents.
internal/client/includes-collector.go:135
↓ 3 callers
Method
CreateHardLinkFromRealPch
CreateHardLinkFromRealPch makes `ln` to a desired folder. When a client tells that 1.cpp depends on /path/to/all-headers.nocc-pch, we recreate path/to
internal/server/pch-compilation.go:122
↓ 3 callers
Method
DeleteClient
(client *Client)
internal/server/clients-storage.go:79
↓ 3 callers
Method
DoneUploadFile
(err error)
internal/client/invocation.go:253
↓ 3 callers
Method
DropAllCaches
(ctx context.Context, in *DropAllCachesRequest, opts ...grpc.CallOption)
pb/nocc-protobuf_grpc.pb.go:30
↓ 3 callers
Method
GetHFileInfo
(hFileName string)
internal/client/includes-cache.go:58
↓ 3 callers
Method
IsEmpty
()
internal/common/sha256-struct.go:17
↓ 3 callers
Function
MakeDepFileFromFile
MakeDepFileFromFile parses .o.d. file and creates DepFile
internal/client/dep-files.go:40
↓ 3 callers
Function
MakeLoggerClient
(logFile string, verbosity int64, noLogsIfEmpty bool)
internal/client/logger-client.go:8
↓ 3 callers
Method
QuitDaemonGracefully
(reason string)
internal/client/daemon.go:151
↓ 3 callers
Method
RecreateReceiveStreamOrQuit
(failedStreamCancelFunc context.CancelFunc, err error)
internal/client/files-receiving.go:45
↓ 3 callers
Method
StartClient
Compilation api
pb/nocc-protobuf_grpc.pb.go:22
↓ 3 callers
Method
Status
Service api
pb/nocc-protobuf_grpc.pb.go:28
↓ 3 callers
Method
StopClient
(ctx context.Context, in *StopClientRequest, opts ...grpc.CallOption)
pb/nocc-protobuf_grpc.pb.go:26
↓ 3 callers
Method
String
()
internal/client/own-includes-parser.go:56
↓ 3 callers
Function
compareTwoDepfiles
(lhs *client.DepFile, rhs *client.DepFile, lhsDesc string, rhsDesc string)
tests/depfiles_test.go:20
↓ 3 callers
Function
failedStartDaemon
(err interface{})
cmd/nocc-daemon/main.go:19
↓ 3 callers
Function
format_time_to_log
cmd/nocc.cpp:43
↓ 3 callers
Function
initCmdFlag
(s cmdLineArg, cmdName string, usage string)
internal/common/cmd-env-flags.go:145
↓ 3 callers
Function
quoteMakefileTarget
quoteMakefileTarget escapes any characters which are special to Make
internal/client/dep-cmd-flags.go:164
↓ 3 callers
Function
sendLogFileByChunks
sendLogFileByChunks streams a local server log file, for debugging purposes (implementation is similar to streaming obj file, but made simpler). See c
internal/server/files-stream-server.go:93
↓ 2 callers
Method
ActiveSessionsCount
()
internal/server/clients-storage.go:137
↓ 2 callers
Method
AddDepInclude
(fileName string, fileSize int64, fileSHA256 SHA256)
internal/common/own-pch-files.go:63
↓ 2 callers
Method
AddIncludeResolve
(quotedArg string, hFileName string)
internal/client/includes-cache.go:52
↓ 2 callers
Method
CollectDependentIncludes
CollectDependentIncludes finds dependencies for an input .cpp file. "dependencies" are typically all reachable .h files at any level, and probably pre
internal/client/invocation.go:222
↓ 2 callers
Method
Count
()
internal/client/include-dirs.go:24
↓ 2 callers
Method
Count
()
internal/server/system-headers.go:73
↓ 2 callers
Method
CreateReceiveStream
()
internal/client/files-receiving.go:31
↓ 2 callers
Method
CreateUploadStream
()
internal/client/files-uploading.go:36
↓ 2 callers
Method
DropAll
()
internal/server/file-cache.go:155
↓ 2 callers
Method
DumpLogs
(ctx context.Context, in *DumpLogsRequest, opts ...grpc.CallOption)
pb/nocc-protobuf_grpc.pb.go:29
↓ 2 callers
Function
EmulateDaemonInsideThisProcessForDev
EmulateDaemonInsideThisProcessForDev is for dev purposes: for development, I use `nocc-daemon g++ ...` from GoLand directly (without a C++ `nocc` wrap
internal/client/compile-locally.go:43
↓ 2 callers
Method
FilesCount
()
internal/server/client.go:269
↓ 2 callers
Method
FindBySessionID
(sessionID uint32)
internal/client/daemon.go:291
↓ 2 callers
Method
ForceInterrupt
(err error)
internal/client/invocation.go:261
↓ 2 callers
Method
FromLongHexString
(hex string)
internal/common/sha256-struct.go:36
↓ 2 callers
Method
GetMore10secCount
()
internal/server/cxx-launcher.go:83
↓ 2 callers
Method
GetMore30secCount
()
internal/server/cxx-launcher.go:87
↓ 2 callers
Method
GetPurgedFilesCount
()
internal/server/file-cache.go:151
↓ 2 callers
Method
GetTotalCxxCallsCount
()
internal/server/cxx-launcher.go:75
↓ 2 callers
Method
HandleInvocation
(req DaemonSockRequest)
internal/client/daemon.go:180
↓ 2 callers
Function
IsSystemHeaderPath
(somePathOrFileName string)
internal/server/system-headers.go:34
↓ 2 callers
Function
LocateOwnPchFile
LocateOwnPchFile finds a .nocc-pch file next to .h. The results are cached: if a file doesn't exist, it won't be looked up again until daemon is alive
internal/client/includes-collector.go:179
↓ 2 callers
Method
LookupInCache
(key common.SHA256)
internal/server/file-cache.go:67
↓ 2 callers
Function
MakeDaemon
(remoteNoccHosts []string, disableObjCache bool, disableOwnIncludes bool, maxLocalCxxProcesses int64)
internal/client/daemon.go:81
↓ 2 callers
Function
MakeDepFileFromBytes
MakeDepFileFromBytes parses contents of .o.d file and creates DepFile
internal/client/dep-files.go:34
↓ 2 callers
Function
MakeFileCache
(cacheDir string, limitBytes int64)
internal/server/file-cache.go:54
↓ 2 callers
Function
MakeIncludeDirs
()
internal/client/include-dirs.go:11
↓ 2 callers
Function
MakeLogger
(logFile string, verbosity int64, noLogsIfEmpty bool, duplicateToStderr bool)
internal/common/logger.go:18
↓ 2 callers
Method
MapServerAbsToClientFileName
MapServerAbsToClientFileName converts an absolute path on server relatively to the client working dir. For example, /tmp/nocc/cpp/clients/{clientID}/p
internal/server/client.go:91
↓ 2 callers
Function
MkdirForFile
(fileName string)
internal/common/filesystem.go:11
↓ 2 callers
Function
OpenTempFile
(fullPath string)
internal/common/filesystem.go:18
↓ 2 callers
Function
ParseCmdFlagsCombiningWithEnv
()
internal/common/cmd-env-flags.go:201
↓ 2 callers
Function
ParseOwnPchFile
(ownPchFile string)
internal/common/own-pch-files.go:216
↓ 2 callers
Method
PeriodicallyInterruptHangedInvocations
()
internal/client/daemon.go:298
next →
1–100 of 508, ranked by callers