Modified debugtool to write blobs and layers statistics to file