| 55 | } |
| 56 | |
| 57 | MemoryReportFormatter* MemoryReporterPlugin::createMemoryFormatter(const SimpleString& type) |
| 58 | { |
| 59 | if (type == "normal") { |
| 60 | return new NormalMemoryReportFormatter; |
| 61 | } |
| 62 | else if (type == "code") { |
| 63 | return new CodeMemoryReportFormatter(defaultMallocAllocator()); |
| 64 | } |
| 65 | return NULLPTR; |
| 66 | } |
| 67 | |
| 68 | void MemoryReporterPlugin::destroyMemoryFormatter(MemoryReportFormatter* formatter) |
| 69 | { |
nothing calls this directly
no test coverage detected