tapwork / heapinspector-for-ios Goto Github PK
View Code? Open in Web Editor NEWFind memory issues & leaks in your iOS app without instruments
License: MIT License
Find memory issues & leaks in your iOS app without instruments
License: MIT License
[UINavigationBar frame]: unrecognized selector sent to class 0x1b03fcd60
BTW, it seams this was introduced in commit: 45fb730. The param backtrace is released in getBacktrace().
- (void)tw_dealloc
{
recordAndRegisterIfPossible(self,"dealloc");
[self tw_dealloc];
}
The pod doesn't have the latest code. When will it be updated?
When I run my app with HeapInspector, I start it in AppDelegate in didFinishLaunching, a couple of seconds in running it, the simulator freezes. Both the record and heap buttons, and everything in my app stops responding to inputs. Issue reproduces both on simulator and on device.
Debug navigator shows like 10-20% CPU activity and about 10mbps of ram, which is regular app usage.
ld: library not found for -lPods-HeapInspector
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@tapwork
if use pods, will start .xcworkspace file, but project no this file
Just crashed when using Masonry with blocks.
Crashed line looks like:
[self.currentFrame mas_updateConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.currentFrame.superview).with.offset(3.0 + pageSize * 2);
}];
I'm not sure if the implementation of objc_retainBlock
is all right in HeapInspector.
id objc_retainBlock(id value)
{
if (value) {
recordAndRegisterIfPossible(value,"retainBlock");
}
[value copy];
return value;
}
According to http://clang.llvm.org/docs/AutomaticReferenceCounting.html objc_retainBlock should do more than just copy?
If value is null, this call has no effect. Otherwise, if the block pointed to by value is still on the stack, it is copied to the heap and the address of the copy is returned. Otherwise a retain operation is performed on the block exactly as if it had been sent the retain message.
In my app, I record the memory usage, but it too slow.
One operation may cost ten minutes.
If run for a while, the app may killed because the memory:Message from debugger: Terminated due to Memory Error
I Test this in iPhone 6 & iphone 5c. The project is large and many objects are alloced when running.
somebody has the same problem? how should I resolve this. Thanks!
when I install HeapInspector in my program,I find that your framework can product memory leak! Can you answer me the reason? I want to say my program has not memory leak. I just want to test your framwork,no except to see what it causes now.
the log output:
2016-03-16 22:55:04.864 Weiyun[3862:2294084] zone address:0x1042ac000 index:0
2016-03-16 22:55:05.123 Weiyun[3862:2294084] zone address:0x104518000 index:1
2016-03-16 22:55:05.123 Weiyun[3862:2294084] zone address:0x13784a000 index:2
2016-03-16 22:55:05.124 Weiyun[3862:2294084] zone address:0x1047f8000 index:3
2016-03-16 22:55:05.124 Weiyun[3862:2294084] zone address:0x19f939e70 index:4
2016-03-16 22:55:05.124 Weiyun[3862:2294084] zone address:0x137179800 index:5
2016-03-16 22:55:05.130 Weiyun[3862:2294084] zone address:0x1042ac000 index:0
2016-03-16 22:55:05.636 Weiyun[3862:2294084] zone address:0x104518000 index:1
2016-03-16 22:55:05.636 Weiyun[3862:2294084] zone address:0x13784a000 index:2
2016-03-16 22:55:05.637 Weiyun[3862:2294084] zone address:0x1047f8000 index:3
2016-03-16 22:55:05.637 Weiyun[3862:2294084] zone address:0x19f939e70 index:4
Weiyun(3862,0x1a05f9000) malloc: Attempted to register zone more than once: 0x16fd99c18
2016-03-16 22:55:05.637 Weiyun[3862:2294084] zone address:0x137179800 index:5
2016-03-16 22:55:05.637 Weiyun[3862:2294084] zone address:0x16fd99c18 index:6
I don't know what happed, It's crash everytime I want stop record or tap the Heap Bar.
Thanks
Can you show how this could be used without a GUI? e.g.. in app extensions that can't display a full UI? A simple way using NSLog() would be much appreciated.
Currently not able to push to a new branch because of some creds issue.
How would any of you like me to get these changes up and into Master?
Thanks.
Since swift isn't using prefix anymore, it's really hard our own objects. I can think two solutions to make it working with this kind of projects:
I am confused by the algorithm of Retain Count.
in HeapInspector,Retain Count = alloc+retain+strong -release, but is not always equals to CFGetRetainCount((__bridge CFTypeRef)object), why?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.