MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / collectDebug

Function collectDebug

dgraph/cmd/debuginfo/run.go:117–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117func collectDebug() {
118 if debugInfoCmd.alphaAddr != "" {
119 filePrefix := filepath.Join(debugInfoCmd.directory, "alpha_")
120
121 saveMetrics(debugInfoCmd.alphaAddr, filePrefix, debugInfoCmd.seconds, debugInfoCmd.metricTypes)
122
123 }
124
125 if debugInfoCmd.zeroAddr != "" {
126 filePrefix := filepath.Join(debugInfoCmd.directory, "zero_")
127
128 saveMetrics(debugInfoCmd.zeroAddr, filePrefix, debugInfoCmd.seconds, debugInfoCmd.metricTypes)
129
130 }
131}
132
133func archiveDebugInfo() error {
134 archivePath, err := createGzipArchive(debugInfoCmd.directory)

Callers 1

collectDebugInfoFunction · 0.85

Calls 1

saveMetricsFunction · 0.85

Tested by

no test coverage detected