package com.leilu.libleaktracer;
/**
* Created by ll on 2018/7/17.
*/
public class LeakTracerUtil {
private static final LeakTracerUtil instance = new LeakTracerUtil();
private boolean isRunning;
static {
System.loadLibrary("leaktracer");
}
private LeakTracerUtil() {
}
public static LeakTracerUtil getInstance() {
return instance;
}
private native void _startMonitoringAllThreads();
private native void _startMonitoringThisThread();
private native void _stopAllMonitoring(String savePath);
public void startMonitoringAllThreads() {
if (isRunning) {
return;
}
_startMonitoringAllThreads();
isRunning = true;
}
public void startMonitoringThisThread() {
if (isRunning) {
return;
}
_startMonitoringThisThread();
isRunning = true;
}
public void stopAllMonitoring(String savePath) {
if (isRunning) {
_stopAllMonitoring(savePath);
isRunning = false;
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
jni层内存泄漏检测工具
共156个文件
xml:44个
rawproto:23个
json:23个
需积分: 49 8 下载量 15 浏览量
2018-07-17
19:48:35
上传
评论
收藏 1.14MB ZIP 举报
温馨提示
移植了LeakTracer库到安卓平台,可以直接使用,带有例子
资源推荐
资源详情
资源评论
收起资源包目录
jni层内存泄漏检测工具 (156个子文件)
gradlew.bat 2KB
fileSnapshots.bin 2.89MB
classAnalysis.bin 792KB
jarAnalysis.bin 318KB
fileHashes.bin 283KB
taskHistory.bin 100KB
taskHistory.bin 96KB
taskJars.bin 23KB
resourceHashesCache.bin 20KB
last-build.bin 1B
built.bin 0B
native_jni.c 1KB
MemoryTrace.cpp 12KB
AllocationHandlers.cpp 3KB
LeakTracerC.cpp 958B
MemoryUtil.cpp 548B
.gitignore 127B
.gitignore 8B
.gitignore 8B
build.gradle 1013B
build.gradle 851B
build.gradle 573B
settings.gradle 34B
gradlew 5KB
leaktracer.h 771B
MemoryUtil.h 353B
logger.h 185B
MemoryTrace.hpp 15KB
ObjectsPool.hpp 6KB
MapMemoryInfo.hpp 6KB
Mutex.hpp 1KB
MutexLock.hpp 1KB
LeakTracer_l.hpp 246B
libleaktracer.iml 12KB
app.iml 10KB
LeakTracerForAndroid.iml 874B
gradle-wrapper.jar 52KB
LeakTracerUtil.java 1KB
ExampleInstrumentedTest.java 787B
ExampleInstrumentedTest.java 778B
MainActivity.java 667B
ExampleUnitTest.java 424B
ExampleUnitTest.java 417B
profile-2018-07-17-19-29-40-549.json 126KB
profile-2018-07-17-19-35-53-085.json 126KB
profile-2018-07-17-19-36-28-014.json 112KB
profile-2018-07-17-19-35-29-449.json 112KB
profile-2018-07-17-19-30-52-292.json 112KB
profile-2018-07-17-17-50-01-722.json 94KB
profile-2018-07-17-18-02-47-673.json 92KB
profile-2018-07-17-19-29-29-318.json 92KB
profile-2018-07-17-18-03-14-444.json 92KB
profile-2018-07-17-18-05-21-709.json 92KB
profile-2018-07-17-18-05-32-551.json 92KB
profile-2018-07-17-19-28-29-729.json 67KB
profile-2018-07-17-19-29-01-951.json 67KB
profile-2018-07-17-19-28-51-224.json 67KB
profile-2018-07-17-18-02-42-834.json 47KB
profile-2018-07-17-18-05-20-003.json 47KB
profile-2018-07-17-18-05-31-019.json 47KB
profile-2018-07-17-19-28-48-718.json 47KB
profile-2018-07-17-18-03-08-220.json 47KB
profile-2018-07-17-19-28-26-795.json 47KB
profile-2018-07-17-19-29-23-205.json 47KB
profile-2018-07-17-19-29-00-447.json 47KB
profile-2018-07-17-19-35-30-037.json 47KB
taskHistory.lock 17B
javaCompile.lock 17B
fileContent.lock 17B
fileHashes.lock 17B
cache.properties.lock 2B
Android.mk 370B
Application.mk 94B
ic_launcher_round.png 15KB
ic_launcher_round.png 10KB
ic_launcher.png 9KB
ic_launcher_round.png 7KB
ic_launcher.png 6KB
ic_launcher_round.png 5KB
ic_launcher.png 4KB
ic_launcher.png 3KB
ic_launcher_round.png 3KB
ic_launcher.png 2KB
proguard-rules.pro 772B
proguard-rules.pro 772B
gradle.properties 747B
local.properties 480B
gradle-wrapper.properties 236B
cache.properties 51B
profile-2018-07-17-19-35-53-085.rawproto 9KB
profile-2018-07-17-19-29-40-549.rawproto 9KB
profile-2018-07-17-19-36-28-014.rawproto 9KB
profile-2018-07-17-19-30-52-292.rawproto 9KB
profile-2018-07-17-19-35-29-449.rawproto 9KB
profile-2018-07-17-17-50-01-722.rawproto 8KB
profile-2018-07-17-18-05-21-709.rawproto 8KB
profile-2018-07-17-19-29-29-318.rawproto 8KB
profile-2018-07-17-18-03-14-444.rawproto 8KB
profile-2018-07-17-18-02-47-673.rawproto 8KB
profile-2018-07-17-18-05-32-551.rawproto 8KB
共 156 条
- 1
- 2
资源评论
leilu_livvy
- 粉丝: 4
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功