Chinaunix首页 | 论坛 | 博客
  • 博客访问: 223015
  • 博文数量: 48
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 412
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-24 10:27
个人简介

Continuous pursuit technical details

文章分类

全部博文(48)

文章存档

2014年(1)

2013年(47)

分类: C/C++

2013-12-10 15:20:57

#include
#include
#include


using namespace std;


int main(){
        cout << "==============================" << endl;
        malloc_stats();
        map tmpMap;
        for(int i=0;i<1000000;i++){
                tmpMap[i] = (float)i;
        }
        cout << "==============================" << endl;
        malloc_stats();
        //cout << ":: mem use in M is " << get_max_malloc_length_inMB() << endl;
        tmpMap.clear();
        cout << "==============================" << endl;
        malloc_stats();




        cout << "==============================" << endl;
        char *myspace = (char*)malloc(3000000);
        malloc_stats();
        return 0;
}

阅读(1540) | 评论(0) | 转发(0) |
0

上一篇:time.c

下一篇:thread.c

给主人留下些什么吧!~~