Set log level to JERRY_LOG_LEVEL_DEBUG when using mem-stats. (#1843)

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka 2017-05-22 12:58:40 +02:00 committed by GitHub
parent eb2af2d2a6
commit 04f3bf62b0

View File

@ -370,10 +370,12 @@ int jerry_main (int argc, char *argv[])
else if (!strcmp ("--mem-stats", argv[i]))
{
flags |= JERRY_INIT_MEM_STATS;
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
}
else if (!strcmp ("--mem-stats-separate", argv[i]))
{
flags |= JERRY_INIT_MEM_STATS_SEPARATE;
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
}
else if (!strcmp ("--show-opcodes", argv[i]))
{