Memory/Perf: For link-mode, isolate file I/O so API can be looped over.
authorJohn Kessenich <cepheus@frii.com>
Sat, 16 Jan 2016 22:30:03 +0000 (15:30 -0700)
committerJohn Kessenich <cepheus@frii.com>
Sat, 16 Jan 2016 22:30:03 +0000 (15:30 -0700)
commitc57b2a97fa808970a4809c53de605bbf103fce12
treed8148f5b0e60b3f6d52772b8936ecf4ffea11551
parent68f1431a55edd7b19e1e00ac7ba1764949eccd5d
Memory/Perf: For link-mode, isolate file I/O so API can be looped over.

Separating file I/O from compile/link lets the compile/link be done
repeatedly in a loop for testing and measuring of performance and
memory footprint, including seeing memory growth over time for
functional-level memory-leak testing.

While the older compile-only mode already had this functionality,
and typically showed no memory leaks, SPIR-V uses the link path,
has pending "TODO" for memory freeing, and this shows several
kilobytes of leaking per compile-link. Most likely, pending
merge request 131 will address much of this.
StandAlone/StandAlone.cpp
glslang/OSDependent/Windows/ossource.cpp