diff --git a/README.en.md b/README.en.md index 611f82f573a63c068768a6d8f5262792c327ef86..ebb0eb0589124f1cb1e5bf63a62592d73179f364 100644 --- a/README.en.md +++ b/README.en.md @@ -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 diff --git a/README.md b/README.md index 2159bffbc59fcedb20b5aa9812e14fd94baa53f2..bdb757829c3339fa7f2ad5c825b93074152acc6d 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,6 @@ #### 介绍 Memory lead detection tool -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx #### 参与贡献 diff --git a/memleax-1.1.1.tar.gz b/memleax-1.1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..aacb83a9fb647f943f8a3384c94fe57108e13b5d Binary files /dev/null and b/memleax-1.1.1.tar.gz differ diff --git a/memleax.spec b/memleax.spec new file mode 100644 index 0000000000000000000000000000000000000000..3521305b184503529ce89dfcd9941b3d70656e1b --- /dev/null +++ b/memleax.spec @@ -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 +- Package init +