Code Monkey home page Code Monkey logo

tracedump's Introduction

TraceDump

This project is second develop base on TraceUtility

Blog post(in Chinese δΈ­ζ–‡)

Usage

$./traceDump path/to/xxx.trace

Output

The same as TraceUtility

Done

  • Rebuild project and fix some bugs
  • Support GPU Driver loginstrument.
  • Support CPU Activity loginstrument.
  • Support Activity Monitorinstrument.
  • Update Allocationsinstrument.(Now you can get persisentBytes size during each second)

TODO

  • Parse Time Profilerinstrument.(Old way dosen't work from Xcode 9.0)

tracedump's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tracedump's Issues

Unable to Parse Activity Monitor trace

Initially when I ran the compiled project passing activity_monitor.trace file, it threw "Data processor has not been implemented for this type of instrument." because instrumentID was not compared to exact value, after modifying & running again, it is throwing error like

Instrument: Activity Monitor (com.apple.xray.instrument-type.activity)
Run #1: Run 1
time, CPUUserLoad, PhysicalMemoryActive, PhysicalMemoryWired, PhysicalMemoryUsed
2018-03-14 19:17:23.283 TraceDump[45587:618666] -[NSTaggedPointerString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x33d80010e32d745
2018-03-14 19:17:23.283 TraceDump[45587:618666] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x33d80010e32d745'
*** First throw call stack:
(
0 CoreFoundation 0x00007fffd5c542cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fffeaa6a48d objc_exception_throw + 48
2 CoreFoundation 0x00007fffd5cd5f04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x00007fffd5bc6755 forwarding + 1061
4 CoreFoundation 0x00007fffd5bc62a8 _CF_forwarding_prep_0 + 120
5 TraceDump 0x000000010e0819e4 ParseActivitymonitor + 292
6 TraceDump 0x000000010e082fc9 main + 3849
7 libdyld.dylib 0x00007fffeb350235 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

Occurs in
ActivityMonitorHeader.h
ParseActivitymonitor()
for (NSDictionary *sample in _data) {

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.