!628 codecheck清理

Merge pull request !628 from Federer-JC/master
This commit is contained in:
openharmony_ci 2024-11-22 08:55:59 +00:00 committed by Gitee
commit 7d3e5e78df
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 2 deletions

View File

@ -854,7 +854,8 @@ void StartTraceChain(uint64_t label, const struct HiTraceIdStruct* hiTraceId, co
AddHitraceMeterMarker(MARKER_BEGIN, label, value, 0, hiTraceId);
}
void StartAsyncTraceDebug(bool isDebug, uint64_t label, const std::string& value, int32_t taskId, float limit UNUSED_PARAM)
void StartAsyncTraceDebug(bool isDebug, uint64_t label, const std::string& value, int32_t taskId,
float limit UNUSED_PARAM)
{
if (!isDebug) {
return;

View File

@ -296,9 +296,11 @@ def generate_one_event_str(data, cpu_id, time_stamp, one_event):
return event_str
format_miss_cnt = 0
format_miss_set = set()
def parse_one_event(data, event_id, cpu_id, time_stamp):
global format_miss_cnt
global format_miss_set
@ -486,7 +488,7 @@ def parse_binary_trace_file():
print("%d" % miss_format_id)
for name in get_not_found_foramt:
print("Error: function parse_" + name + " not found")
print("Error: function parse_%s not found" % name)
def main():