diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-07 19:32:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-07 19:32:46 +0300 |
commit | 03b8a1e6cf21dbcd3f6f03311cf02b91f3630c26 (patch) | |
tree | cb23fbbb4f716b6653091cdc14023a6c2f49b913 /src/plugin.cpp | |
parent | db6bbfe7d662460e5357f9d8fdbdd142cae3d8e1 (diff) | |
download | paranucker-03b8a1e6cf21dbcd3f6f03311cf02b91f3630c26.tar.gz paranucker-03b8a1e6cf21dbcd3f6f03311cf02b91f3630c26.tar.bz2 paranucker-03b8a1e6cf21dbcd3f6f03311cf02b91f3630c26.tar.xz paranucker-03b8a1e6cf21dbcd3f6f03311cf02b91f3630c26.zip |
Add memoryusage plugin command. It show only number of allocated nodes.
Diffstat (limited to 'src/plugin.cpp')
-rw-r--r-- | src/plugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugin.cpp b/src/plugin.cpp index 952c0c9..19ed8b0 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -39,7 +39,7 @@ static void pre_generic(void *gcc_data, void *user_data A_UNUSED) { Node *node = Generic::parseNodes((tree)gcc_data); - Generic::cleanNodes(node); + Generic::cleanAllNodes(node); } int plugin_init (struct plugin_name_args *plugin_info, @@ -65,6 +65,10 @@ int plugin_init (struct plugin_name_args *plugin_info, { command = Command::SmallDump; } + else if (cmd == "memoryusage") + { + command = Command::MemoryUsage; + } else { error("Plugin %s. Unknown command: %s", |