总结:使用 gperftools 进行性能分析
1. 安装 gperftools 使用 gperftools Release页面 下载(不要使用git clone,且不要使用cmake编译,编译不生成pprof工具),编译命令: ./configure make && make install 安装graphviz: sudo apt-get install graphviz 2. 将 gperftools ...
1. 安装 gperftools 使用 gperftools Release页面 下载(不要使用git clone,且不要使用cmake编译,编译不生成pprof工具),编译命令: ./configure make && make install 安装graphviz: sudo apt-get install graphviz 2. 将 gperftools ...
例如编写CMake查找模块,名称为 Findgperftools.cmake,内容如下: # Try to find gperftools # Once done, this will define # # gperftools_FOUND - system has Profiler # GPERFTOOLS_INCLUDE_DIR - the Profiler include direc...
#include <iostream> #include <queue> #include <mutex> template <typename T> class ThreadSafeQueue { public: void push(const T& item) { std::lock_guard<st...
1. 使能 core dump # 查看是否使能 core dump, -a 显示所有设置 sudo ulimit -c # 使能 core dump,不限制core dump文件大小 sudo ulimit -c unlimited # 限制 core dump 文件大小为 2G sudo ulimit -c 4194304 # 关闭 core dump sudo ulimit -...
1 Python venv 环境搭建 1.1 venv 安装 pip install virtualenv # 设置永久国内 pip 源 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/ pip config set install.trusted-host pypi.tuna.tsing...
# nginx 解决 403 错误问题 sudo setenforce Permissive sudo setsebool -P httpd_can_network_connect on sudo chcon -Rt httpd_sys_content_t /usr/share/nginx/html/ nginx不能启动,提示端口不能绑定 8090 端口 查看服务状态信息,提示如下信...
cat id_rsa.pub >> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys chmod 700 ~/.ssh service sshd restart
1. 流水线概念 2. 流水线例子 参考 GLSL教程(一)图形流水线
OpenCASCADE 布尔运算简介 Boolean Operations OpenCascade功能及模块简介 个人理解:由于OCCT采用BRep(边界表示)表示方式,在做boolean操作时,计算出诸如edge/edge,face/face的交界面/点等,并存储供后面使用。 1. 干涉检测 计算出Objects与Tools的各种干涉类型:如vertex与vertex...
下载安装包及环境变量设置 下载安装msmpi以及msmpisdk:MSMPI github releases。注意安装路径不要有空格及中文。 命令行设置: set MSMPI 输出信息如下图所示: 建立第一个测试程序 hello_mpi find_package(MPI REQUIRED) # list(APPEND myMPI_INC_DIR $ENV{MSMPI_I...