Set log level to JERRY_LOG_LEVEL_DEBUG when using mem-stats. (#1843)
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka [email protected]
This commit is contained in:
1 parent
eb2af2d2a6
commit
04f3bf62b0
1 file changed
+2
@@ -370,10 +370,12 @@ int jerry_main (int argc, char *argv[])
|
|||||||
else if (!strcmp ("--mem-stats", argv[i]))
|
else if (!strcmp ("--mem-stats", argv[i]))
|
||||||
{
|
{
|
||||||
flags |= JERRY_INIT_MEM_STATS;
|
flags |= JERRY_INIT_MEM_STATS;
|
||||||
|
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
|
||||||
}
|
}
|
||||||
else if (!strcmp ("--mem-stats-separate", argv[i]))
|
else if (!strcmp ("--mem-stats-separate", argv[i]))
|
||||||
{
|
{
|
||||||
flags |= JERRY_INIT_MEM_STATS_SEPARATE;
|
flags |= JERRY_INIT_MEM_STATS_SEPARATE;
|
||||||
|
jerry_log_level = JERRY_LOG_LEVEL_DEBUG;
|
||||||
}
|
}
|
||||||
else if (!strcmp ("--show-opcodes", argv[i]))
|
else if (!strcmp ("--show-opcodes", argv[i]))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user