Prepare debugging tool to allow direct shared memory file analysis
This tool would be useful for internal debugging of hived problems we periodically have.
Planned design is to have an option there to:
- generate (regular) snapshot from pointed shared memory file. Initially we can dump whole snapshot, in next steps try to implement some filtering, but maybe this is not worth at this step due to good performance of snapshot dumper.
- in next step (by specifying different option to the tool) dump specified multiindex to JSON output. It could be very useful (altough I am not sure how complex it could be) to dump all index contents in default "by_id" manner and additionally dump separate associations defined by specific indexes mapped to earlier generated object IDs.
It could be very good to have also a way to process/dump undo state structures saved in shared memory file, being specific to given index.