1 Star 1 Fork 0

Lee'sEngineer / tcmalloc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

#TCMalloc 是对google的tcmalloc进行编译,windows版本。提供了多个编译器的编译版本,包括debug和release版本。当前只编译了gperftools-2.5的vs2010和vs2015版本。

##目录说明

  • 3rd 可以直接使用的第三方库
  • bin 生成的可执行文件
  • build 编译生成的目录
  • doc 项目的一些文档
  • include 项目公开的头文件
  • project 项目的工程文件
  • refer 参考资料
  • src 项目的源代码
  • test 项目的测试代码
  • tool 项目开发或者生命周期中会用到的工具

##使用手册

  • 方式1:项目配置,添加tcmalloc的使用 添加库依赖: libtcmalloc_minimal.lib 添加强制引用:(避免连接器优化掉不用的库,注意这是链接参数) /INCLUDE:"__tcmalloc"
    用QT+VS的情况方式如下:
    CONFIG(debug, debug|release) { VAR_3RDLIBS += libtcmalloc_minimal-debug } else { VAR_3RDLIBS += libtcmalloc_minimal } win32:contains(QMAKE_CC, cl){ QMAKE_LFLAGS += -INCLUDE:"__tcmalloc" }

  • 方式2:只用第三方工具,直接把tcmalloc的dll引用加入到exe 参考:Windows的符号替换Detours

The MIT License (MIT) Copyright (c) 2016 Lee'sEngineer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

针对google的tcmallo进行编译,然后建立好版本库 展开 收起
C++
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/LeesEngineer/tcmalloc.git
git@gitee.com:LeesEngineer/tcmalloc.git
LeesEngineer
tcmalloc
tcmalloc
master

搜索帮助