!2 add spec and source file

Merge pull request !2 from myeuler/master
This commit is contained in:
openeuler-ci-bot 2020-04-07 11:01:53 +08:00 committed by Gitee
commit a91494ca99
4 changed files with 51 additions and 30 deletions

View File

@ -3,21 +3,6 @@
#### Description
Memory lead detection tool
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository

View File

@ -3,21 +3,6 @@
#### 介绍
Memory lead detection tool
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献

BIN
memleax-1.1.1.tar.gz Normal file

Binary file not shown.

51
memleax.spec Normal file
View File

@ -0,0 +1,51 @@
Name: memleax
Version: 1.1.1
Release: 1
Summary: Memory lead detection tool
License: GPLv2
URL: https://github.com/WuBingzheng/memleax
Source0: https://github.com/WuBingzheng/memleax/archive/memleax-%{version}.tar.gz
BuildRequires: make libunwind-devel elfutils-devel gdb
%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 -n %{name}-%{version}/
%build
./configure
make
%install
make install DESTDIR="%{buildroot}"
%pre
%preun
%post
%postun
%check
%files
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init