Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for reading com.apple.xray.instrument-type.homeleaks instrument #37

Merged
merged 1 commit into from Feb 28, 2019

Conversation

Projects
None yet
2 participants
@peruginni
Copy link

peruginni commented Feb 24, 2019

What changed:

  • Adds XRLeak, XRLeaksRun, DVT_VMUClassInfo types
    used in com.apple.xray.instrument-type.homeleaks instrument
  • Creates NSDictionary *parsedLeak with some useful memory leak properties.

How to test:

  • Download trace file containing memory leaks
  • Build binary of TraceUtility
  • Running ./TraceUtility Example.trace should output:
Instrument: Leaks (com.apple.xray.instrument-type.homeleaks)
Run #1: Run 1
Leaked 1x times: Malloc 48 Bytes
Leaked 1x times: Malloc 48 Bytes
Leaked 1x times: Malloc 48 Bytes
Leaked 1x times: Malloc 48 Bytes
Leaked 1x times: Malloc 32 Bytes
Leaked 1x times: Malloc 32 Bytes
Leaked 1x times: Malloc 32 Bytes
Leaked 1x times: Malloc 32 Bytes
Leaked 1x times: Generator  Swift  Leakmax
Leaked 1x times: Generator  Swift  Leakmax
Leaked 1x times: CFDictionary  ObjC  CoreFoundation
Leaked 1x times: CFDictionary  ObjC  CoreFoundation
Leaked 1x times: UINavigationItem  ObjC  UIKitCore
Leaked 1x times: UITabBarItem  ObjC  UIKitCore
Leaked 1x times: UINavigationItem  ObjC  UIKitCore
Leaked 1x times: UITabBarItem  ObjC  UIKitCore
Leaked 1x times: GeneratorViewController  Swift  Leakmax
Leaked 1x times: GeneratorViewController  Swift  Leakmax

@Qusic Qusic merged commit a7fb3c3 into Qusic:master Feb 28, 2019

@Qusic

This comment has been minimized.

Copy link
Owner

Qusic commented Feb 28, 2019

Thanks for this complement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.