IVGCVSW-1513 - added utility method to android-nn-driver to print JSON profiling output to a file
IVGCVSW-1513 - added utility method to android-nn-driver to print JSON profiling output to a file

If profiling enabled and dump directory specified, re-test needed to ensure flags are used correctly

	* Minor formatting changes.
	* Added check for runtime null pointer.

Change-Id: I1e7e433a958c16c7d9b59a484b18a7902c1ad8ad

ARM-software/android-nn-driver,ARM-software/android-nn-driver