HomePhabricator
Diffusion LNT bbf46b2fe6b1

[LNT] Fix profile assigning to tests

Authored by kpdev42 on Jan 19 2022, 2:22 AM.

Description

[LNT] Fix profile assigning to tests

report.json may contain the following content:

“Tests”: [
{“Data”: [ 123 ], “Name”: “nts.SomeTest.test:subTest1.exec”},
{“Data”: [ 456 ], “Name”: “nts.SomeTest.test:subTest2.exec”},
{“Data”: [ “base64_encoded_profile_data” ], “Name”: “nts.SomeTest.profile”}
]
This report.json contains 2 tests (execution_time) and 1 profile data which must be assigned to both tests.
Currently LNT creates 3 tests. First 2 tests do not have a profile data. 3rd test does not have any metric, but has the profile data.

This patch implements the correct processing such reports.

OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg

Reviewed By: thopre

Differential Revision: https://reviews.llvm.org/D115702

Details

Committed
kpdev42Jan 19 2022, 2:22 AM
Reviewer
thopre
Differential Revision
D115702: [LNT] Fix profile assigning to tests
Parents
rLNTe4ede111df1f: [LNT] Fixed the time extraction from MMAP and MMAP2 events using the Layout
Branches
Unknown
Tags
Unknown