| 42 | } |
| 43 | |
| 44 | bool MemoryReporterPlugin::parseArguments(int /* ac */, const char *const *av, int index) |
| 45 | { |
| 46 | SimpleString argument (av[index]); |
| 47 | if (argument.contains("-pmemoryreport=")) { |
| 48 | argument.replace("-pmemoryreport=", ""); |
| 49 | |
| 50 | destroyMemoryFormatter(formatter_); |
| 51 | formatter_ = createMemoryFormatter(argument); |
| 52 | return true; |
| 53 | } |
| 54 | return false; |
| 55 | } |
| 56 | |
| 57 | MemoryReportFormatter* MemoryReporterPlugin::createMemoryFormatter(const SimpleString& type) |
| 58 | { |