()
| 115 | } |
| 116 | |
| 117 | func 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 | |
| 133 | func archiveDebugInfo() error { |
| 134 | archivePath, err := createGzipArchive(debugInfoCmd.directory) |
no test coverage detected