📄 memstats.h
字号:
/* * MemStats.h -- * Memory statistics. * * Copyright (c) 1995, SRI International. All Rights Reserved. * * @(#)$Header: /home/srilm/devel/dstruct/src/RCS/MemStats.h,v 1.2 2006/01/05 20:21:27 stolcke Exp $ * */#ifndef _MemStats_h_#define _MemStats_h_#include <iostream>using namespace std;#include <stddef.h>/* * The MemStats structure is used to return memory accounting * information from the memstats() methods of various data types. */class MemStats{public: MemStats(); void clear(); /* reset memory stats */ ostream &print(ostream &stream = cerr); /* print to cerr */ size_t total; /* total allocated memory */ size_t wasted; /* unused allocated memory */};#endif /* _MemStats_h_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -