criu/include/stats.h
Pavel Emelyanov 37c137092b mem/stats: Add stats about memory dumping
pages_scanned -- the amount of pages criu looked at for decision
pages_skipped_parent -- the amount of pages that were skipped, due to
                        they are present in parent image
pages_writted -- the amount of pages criu transfered into image

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-05-15 15:46:07 +04:00

30 lines
405 B
C

#ifndef __CR_STATS_H__
#define __CR_STATS_H__
void show_stats(int fd);
enum {
TIME_FREEZING,
TIME_FROZEN,
TIME_MEMDUMP,
TIME_MEMWRITE,
TIME_NR_STATS,
};
void timing_start(int t);
void timing_stop(int t);
enum {
CNT_PAGES_SCANNED,
CNT_PAGES_SKIPPED_PARENT,
CNT_PAGES_WRITTEN,
CNT_NR_STATS,
};
void cnt_add(int c, unsigned long val);
#define DUMP_STATS 1
void write_stats(int what);
#endif