aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-20 11:24:43 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-20 11:24:43 -0800
commit7e486e3b5c5e1a3a6936322fde487260d3058042 (patch)
tree4be5dc184433a78827f6f5707aae9d40a68e9cda /parser.h
parent3d8face1f902bd51146c64f4df57a1de7049fd6d (diff)
More work towards instanced parser
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/parser.h b/parser.h
index 8c465d0a..db26398e 100644
--- a/parser.h
+++ b/parser.h
@@ -187,7 +187,28 @@ enum parser_type_t {
PARSER_TYPE_COMPLETIONS_ONLY
};
-struct profile_item_t;
+struct profile_item_t {
+ /**
+ Time spent executing the specified command, including parse time for nested blocks.
+ */
+ int exec;
+ /**
+ Time spent parsing the specified command, including execution time for command substitutions.
+ */
+ int parse;
+ /**
+ The block level of the specified command. nested blocks and command substitutions both increase the block level.
+ */
+ int level;
+ /**
+ If the execution of this command was skipped.
+ */
+ int skipped;
+ /**
+ The command string.
+ */
+ wcstring cmd;
+};
class parser_t {
private: