Giter VIP home page Giter VIP logo

heapinspector-for-ios's People

Contributors

allenhsu avatar haifengkao avatar jeffreyjackson avatar onmyway133 avatar readmecritic avatar tapwork avatar yanjunz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heapinspector-for-ios's Issues

crash

[UINavigationBar frame]: unrecognized selector sent to class 0x1b03fcd60

HeapInspectorExample crash

  1. Check out code with tag 0.0.6, and run the HeapInspectorExample.
  2. Tap Record button and Gallery button.
    It crash in NSObject+HeapInspector.m, Line 152, EXC_BAD_ACCESS.

BTW, it seams this was introduced in commit: 45fb730. The param backtrace is released in getBacktrace().

Pod update?

The pod doesn't have the latest code. When will it be updated?

Everything freezes

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.

Crashes with Masonry

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.

It's too slow

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!

memory leak

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.

Crash Bug

crash stack:
image

crash code:
image

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

Non-GUI example

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.

Support module instead of class prefix

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:

  • Filtering using the project module instead of using a simple prefix
  • Add a search field which can make easier to track our own objects

Confuse on Retain Count

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.