Skip to content

Commit f48eba8

Browse files
authored
Merge pull request #59 from intel/fix_remove_sys_metric_dependency_for_htmlblob
Remove the dependency of cpu/mem metrics for htmlblob
2 parents bd123d7 + f59b51d commit f48eba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gprofiler_indexer/callstacks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (pw *ProfilesWriter) ParseStackFrameFile(sess *session.Session, task SQSMes
290290
}
291291
}
292292

293-
if fileInfo.Metrics.CPUAvg != 0 && fileInfo.Metrics.MemoryAvg != 0 {
293+
if htmlBlobPath != "" || (fileInfo.Metrics.CPUAvg != 0 && fileInfo.Metrics.MemoryAvg != 0) {
294294
pw.writeMetrics(uint32(serviceId), fileInfo.Metadata.CloudInfo.InstanceType,
295295
fileInfo.Metadata.Hostname, timestamp, fileInfo.Metrics.CPUAvg,
296296
fileInfo.Metrics.MemoryAvg, htmlBlobPath)

0 commit comments

Comments
 (0)