Splitting --mem-stats option to --mem-stats-at-exit and --mem-stats-per-opcode.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-04-23 15:50:58 +03:00
parent bb258ad1e2
commit d8adf0de2c
4 changed files with 24 additions and 14 deletions
+6 -2
View File
@@ -139,9 +139,13 @@ main (int argc,
printf ("Branch name:\t%s\n", jerry_branch_name);
printf ("\n");
}
else if (!strcmp ("--mem-stats", argv[i]))
else if (!strcmp ("--mem-stats-at-exit", argv[i]))
{
flags |= JERRY_FLAG_MEM_STATS;
flags |= JERRY_FLAG_MEM_STATS_AT_EXIT;
}
else if (!strcmp ("--mem-stats-per-opcode", argv[i]))
{
flags |= JERRY_FLAG_MEM_STATS_PER_OPCODE;
}
else if (!strcmp ("--parse-only", argv[i]))
{