Renaming --mem-stats-at-exit option to --mem-stats; adding --mem-stats-separate option for dumping memory statistics and resetting memory usage peak values after parse.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
+6
-2
@@ -146,14 +146,18 @@ int jerry_main (int argc, char *argv[])
|
||||
printf ("Commit hash:\t%s\n", jerry_commit_hash);
|
||||
printf ("Branch name:\t%s\n", jerry_branch_name);
|
||||
}
|
||||
else if (!strcmp ("--mem-stats-at-exit", argv[i]))
|
||||
else if (!strcmp ("--mem-stats", argv[i]))
|
||||
{
|
||||
flags |= JERRY_FLAG_MEM_STATS_AT_EXIT;
|
||||
flags |= JERRY_FLAG_MEM_STATS;
|
||||
}
|
||||
else if (!strcmp ("--mem-stats-per-opcode", argv[i]))
|
||||
{
|
||||
flags |= JERRY_FLAG_MEM_STATS_PER_OPCODE;
|
||||
}
|
||||
else if (!strcmp ("--mem-stats-separate", argv[i]))
|
||||
{
|
||||
flags |= JERRY_FLAG_MEM_STATS_SEPARATE;
|
||||
}
|
||||
else if (!strcmp ("--parse-only", argv[i]))
|
||||
{
|
||||
flags |= JERRY_FLAG_PARSE_ONLY;
|
||||
|
||||
Reference in New Issue
Block a user