diff options
author | Miao Wang <miaowang@google.com> | 2017-10-04 19:45:45 -0700 |
---|---|---|
committer | Miao Wang <miaowang@google.com> | 2017-10-06 05:21:06 +0000 |
commit | 820215d28bed6c90f696cde0f282445d16da432e (patch) | |
tree | e55383c83d9cef059320a7fbb83d97d6fbfdc934 /nn/runtime/test/TestMain.cpp | |
parent | 61e4a9e1fcec00f719c372a9d3614d1b1810608b (diff) | |
download | ml-820215d28bed6c90f696cde0f282445d16da432e.tar.gz |
Allow fine grain verbose logging control through system property.
- Existing DEBUG and INFO change to the new mechanism, existing ERROR and
WARNING unchanged.
- By default, all verbose logging are disabled.
- setprop debug.nn.vlog 1 enables all verbose logging.
- setprop debug.nn.vlog "tag1 tag2 ..." only enable the selected tags.
- Available tags:
all: same as 1.
model: enable logging with tag MODEL.
compilation: enable logging with tag COMPILATION.
execution: enable logging with tag EXECUTION.
cpuexe: enable logging with tag CPUEXE.
manager: enable logging with tag MANAGER.
driver: enable logging with tag DRIVER.
Bug: 63905942
Test: mm
Test: NeuralNetworksTests pass
Test: manually set property to allow individual module to logging
verbosely
Test: tested with debug.nn.partition default -> 0 -> 1 to make
sure getProp still works fine
Change-Id: Iaa0ffa62176dabcdc35058748597df720fd6e47e
Diffstat (limited to 'nn/runtime/test/TestMain.cpp')
-rw-r--r-- | nn/runtime/test/TestMain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nn/runtime/test/TestMain.cpp b/nn/runtime/test/TestMain.cpp index 8445ac740..29d807602 100644 --- a/nn/runtime/test/TestMain.cpp +++ b/nn/runtime/test/TestMain.cpp @@ -16,7 +16,6 @@ #include "Manager.h" #include "NeuralNetworksWrapper.h" -//#include "SampleDriver.h" #include "Utils.h" #include <gtest/gtest.h> @@ -26,6 +25,7 @@ using namespace android::nn::wrapper; int main(int argc, char** argv) { ::testing::InitGoogleTest(&argc, argv); + android::nn::initVLogMask(); // Test with the installed drivers. int n1 = RUN_ALL_TESTS(); |