[nnpkgrun] Do not always init MemoryPoller (#3999)
authorHanjoung Lee <hanjoung.lee@samsung.com>
Thu, 27 Aug 2020 07:13:38 +0000 (16:13 +0900)
committerGitHub <noreply@github.com>
Thu, 27 Aug 2020 07:13:38 +0000 (16:13 +0900)
commite70edbf0e30d554d296c3c6c6b8c485ff8ee4924
tree567d0c281e16b49f917a309663e52fac30a383a0
parent60033513fc9a6027fb4d81badb00db77ece17cfb
[nnpkgrun] Do not always init MemoryPoller (#3999)

Initialize only when memory polling is on.

On macOS, it crashes since MemoryPoller initialization fails, even
when the user does not set memory polling on.

ONE-DCO-1.0-Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtime/libs/benchmark/include/benchmark/Phases.h
runtime/libs/benchmark/src/Phases.cpp