diff options
author | Viliam Luc <vluc@cisco.com> | 2022-11-14 12:56:50 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2022-11-21 08:26:00 +0000 |
commit | efd33760f3b297ce050514a2e37338d9fc750b2c (patch) | |
tree | 00a24b7eab3e2644c2abd7e6679986c51d565fb0 /resources/tools | |
parent | 99fa11cf4becb834a8e63d902f901c010b4218f5 (diff) |
Fix: when collected telemetry data are broken
Signed-off-by: Viliam Luc <vluc@cisco.com>
Change-Id: Ibf9cf8d56fcddd3d83f25294dffaac7449bf3088
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/telemetry/bundle_perf_stat.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resources/tools/telemetry/bundle_perf_stat.py b/resources/tools/telemetry/bundle_perf_stat.py index f76149f476..17afbe0824 100644 --- a/resources/tools/telemetry/bundle_perf_stat.py +++ b/resources/tools/telemetry/bundle_perf_stat.py @@ -68,14 +68,14 @@ class BundlePerfStat: if text == u"": getLogger("console_stdout").info(event[u"eventcode"]) - elif text.count(u";") < 6: - getLogger("console_stdout").info( - f"Could not get counters for event "\ - f"{event[u'eventcode']}. "\ - f"Is it supported by CPU?" - ) else: for line in text.splitlines(): + if line.count(u";") < 6: + getLogger("console_stdout").info( + f"Could not get counters for current thread." + f"{line}" + ) + continue item = dict() labels = dict() item[u"name"] = self.metrics['counter'][0]['name'] |