1 Star 0 Fork 18

Jingwiw/memleax

forked from src-openEuler/memleax 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
memleax.spec 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
Jingwiw 提交于 2023-03-06 09:14 . riscv64
Name: memleax
Version: 1.1.1
Release: 7
Summary: Memory lead detection tool
License: GPLv2
URL: https://github.com/WuBingzheng/memleax
Source0: https://github.com/WuBingzheng/memleax/archive/v%{version}.tar.gz#/memleax-%{version}.tar.gz
Patch0: 0001-add-loongarch64-support.patch
Patch1: 0002-add-riscv64-support.patch
BuildRequires: make libunwind-devel elfutils-devel gcc
%description
memleax debugs memory leak of a running process by attaching it.
It hooks the target process's invocation of memory allocation and free,
and reports the memory blocks which live long enough as memory leak, in real time.
The default expire threshold is 10 seconds, however you should always
set it by `-e` option according to your scenarios.
It is very *convenient* to use, and suitable for production environment.
There is no need to recompile the program or restart the target process.
You run `memleax` to monitor the target process, wait for the real-time memory
leak report, and then kill it (e.g. by Ctrl-C) to stop monitoring.
memleax follows new threads, but not forked processes.
If you want to debug multiple processes, just run multiple memleax.
%prep
%setup -q
%autosetup -n %{name}-%{version} -p1
%build
./configure
make
%install
make install DESTDIR="%{buildroot}"
%pre
%preun
%post
%postun
%check
%files
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
* Wed Dec 14 2022 doupengda <[email protected]> - 1.1.1-6
- add loongarch64 support
* Wed Aug 04 2021 chenyanpanHW <[email protected]> - 1.1.1-5
- DESC: delete BuildRequires gdb
* Mon Jun 28 2021 wulei <[email protected]> - 1.1.1-4
- fix missing gcc
* Mon Oct 19 2020 Qingqing Li <[email protected]>
- fix source0 error
* Tue Oct 13 2020 Qingqing Li <[email protected]>
- update source0
* Sun Mar 29 2020 Wei Xiong <[email protected]>
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Jingwiw/memleax.git
[email protected]:Jingwiw/memleax.git
Jingwiw
memleax
memleax
master

搜索帮助