Reduce memory consumption in log parsing scripts
authorFabio <fabio.mestre@arm.com>
Tue, 4 Jun 2019 15:09:17 +0000 (17:09 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 26 Jun 2019 09:03:24 +0000 (05:03 -0400)
commit65e3d090e4318d7ba2253511ac88d38ddfbc74da
treef9b57c56c9ea304950020e89c6d6b46a559f57e0
parent8ee2cb10af532e4bf41764d4720a50901f66ba3a
Reduce memory consumption in log parsing scripts

Updated .qpa to .xml conversion scripts to reduce memory consumption.

Before, the script was reading the whole .qpa file and storing it all in
memory. On top of that, it created xml.dom.minidom objects for each
testcase in the .qpa which were also stored in memory.

With this change, we create the .xml file at the same time that we parse
the .qpa which results in only one xml.dom.minidom object being created at
a time.

Components: Scripts

VK-GL-CTS issue: 1813

Change-Id: Iba4cb3bf6a94f57c481eb98a324b28638924075e
scripts/log/log_parser.py
scripts/log/log_to_xml.py