mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
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>
30 lines
405 B
C
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
|