Bug 918581 - Extend merge-profile.py to support secondary threads. r=vlad

--HG--
extra : rebase_source : 28357bbb17b15c7cb40c53ee3442bc6366fcf015
This commit is contained in:
Benoit Girard 2013-09-19 23:24:07 -04:00
Родитель 7afa961994
Коммит 906e0daa78
1 изменённых файлов: 14 добавлений и 14 удалений

Просмотреть файл

@ -36,8 +36,8 @@ def MergeProfiles(files):
minStartTime = min(minStartTime, fileData['profileJSON']['meta']['startTime'])
meta['startTime'] = minStartTime
thread = fileData['profileJSON']['threads'][0]
thread['name'] = pname + " (" + pid + ")"
for thread in fileData['profileJSON']['threads']:
thread['name'] = thread['name'] + " (" + pname + ":" + pid + ")"
threads.append(thread)
# Note that pid + sym, pid + location could be ambigious
@ -56,7 +56,7 @@ def MergeProfiles(files):
for sym in filesyms.keys():
symTable[pidStr + sym] = filesyms[sym]
# For each process, make the time offsets line up based on the
# For each thread, make the time offsets line up based on the
# earliest start
for thread in threads:
delta = thread['startTime'] - minStartTime