Add debug log which print amount of used memory.
Refactor to reuse Piwik components.
Merge pull request #6794 from czolnowski/6708-provide-better-information-of-memory-usage-in-archiving

Provide better information regarding memory usage by each plugin