Skip to content

Commit

Permalink
Merge pull request #227 from bridadan/fix_metrics_parsing
Browse files Browse the repository at this point in the history
Fixing parsing of memory of metrics.
  • Loading branch information
mazimkhan authored Jun 15, 2017
2 parents 06c0143 + 67046da commit 8d40798
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mbed_greentea/mbed_test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,17 @@ def get_memory_metrics(output):
thread_stack_size = int(thread_stack_size)
thread_entry_arg_split = thread_entry_arg.split('-')
thread_entry = thread_entry_arg_split[0]
thread_arg = thread_entry_arg_split[1]

thread_info[thread_entry_arg] = {
'entry': thread_entry,
'arg': thread_arg,
'max_stack': thread_max_stack,
'stack_size': thread_stack_size
}

if len(thread_entry_arg_split) > 1:
thread_arg = thread_entry_arg_split[1]
thread_info[thread_entry_arg]['arg'] = thread_arg

thread_info_list = thread_info.values()

return max_heap_usage, thread_info_list
Expand Down

0 comments on commit 8d40798

Please sign in to comment.