All Projects → ahimahas → MethodTimeTracker

ahimahas / MethodTimeTracker

Licence: other
No description or website provided.

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to MethodTimeTracker

String Pixel Width
Blazingly fast measure string width in pixels on the server in Javascript (Node.Js)
Stars: ✭ 65 (+306.25%)
Mutual labels:  measure
Unit Api
Units of Measurement API
Stars: ✭ 140 (+775%)
Mutual labels:  measure
Measurearkit
An example of measuring app with ARKit in iOS 11
Stars: ✭ 220 (+1275%)
Mutual labels:  measure
Mapbox Gl Controls
Stars: ✭ 93 (+481.25%)
Mutual labels:  measure
Speed Measure Webpack Plugin
⏱ See how fast (or not) your plugins and loaders are, so you can optimise your builds
Stars: ✭ 1,980 (+12275%)
Mutual labels:  measure
Hyperion Ios
In-app design review tool to inspect measurements, attributes, and animations.
Stars: ✭ 1,964 (+12175%)
Mutual labels:  measure
Unitsnet
Makes life working with units of measurement just a little bit better.
Stars: ✭ 641 (+3906.25%)
Mutual labels:  measure
jetty-load-generator
jetty-project.github.io/jetty-load-generator/
Stars: ✭ 62 (+287.5%)
Mutual labels:  measure
Sparkling Graph
SparklingGraph provides easy to use set of features that will give you ability to proces large scala graphs using Spark and GraphX.
Stars: ✭ 139 (+768.75%)
Mutual labels:  measure
Distancemeasure
📷 An android demo which can measure the distance from user to something while taking photos ( Android 拍照测距 )
Stars: ✭ 185 (+1056.25%)
Mutual labels:  measure
Measure
📏 Measure UI for PSD
Stars: ✭ 110 (+587.5%)
Mutual labels:  measure
Hyperion Android
App Debugging & Inspection Tool for Android
Stars: ✭ 1,778 (+11012.5%)
Mutual labels:  measure
Stereo Vision
This program has been developed as part of a project at the University of Karlsruhe in Germany. The final purpose of the algorithm is to measure the distance to an object by combining two webcams and use them as a Stereo Camera.
Stars: ✭ 160 (+900%)
Mutual labels:  measure
Indriya
JSR 385 - Reference Implementation
Stars: ✭ 74 (+362.5%)
Mutual labels:  measure
React Native Text Size
Measure text accurately before laying it out and get font information from your App.
Stars: ✭ 238 (+1387.5%)
Mutual labels:  measure
Membrain
🧠 Type-safe memory units
Stars: ✭ 53 (+231.25%)
Mutual labels:  measure
Funie Gan
Fast underwater image enhancement for Improved Visual Perception. #TensorFlow #PyTorch
Stars: ✭ 155 (+868.75%)
Mutual labels:  measure
redux-perf-middleware
Redux performance middleware, Measure the time that the actions need to change the state
Stars: ✭ 52 (+225%)
Mutual labels:  measure
ARGoal
Get more goals. | Virtual Goals & Goal Distance | App Doctor Hu
Stars: ✭ 14 (-12.5%)
Mutual labels:  measure
Cheap Ruler Go
📏 cheapruler in Go: fast geodesic measurements
Stars: ✭ 176 (+1000%)
Mutual labels:  measure

MethodTimeTracker CocoaPods Platform

MethodTimeTracker is a module that can measure a time to spend in each method.

When can be used

If you felt that your application works a bit slow and you want to know where is the bottleneck in the code level, you are in the right place.

Method time tracker measures for each method that how much time they spend. You can specify a single method you want to measure, or just check all methods in a class.

Sample result

Here is the result of measuring all methods in Sample project. The return value is a time in second.

sameple screenshot

Installation

Use the CocoaPods

pod 'MethodTimeTracker'

and import header file

#import <NSObject+MethodTimeTracker.h>

If you want to use MethodTimeTracker without setting CocoaPods, you can download codes in MethodTimeTracker folder directly and add it to your project.

How to use

  • Measure a single method
- (instancetype)init {
  ...
  
  //! with method name in String value
  [self trackingMethod:@"viewDidLoad"];
  
  //! or with method name in Selector
  [self trackingMethodWithSelector:@selector(viewDidLoad)];
}
  • Measure multiple methods
- (instancetype)init {
  ...
  
  //! with method name in String value
  [self trackingMethods:@[@"viewDidLoad", @"privateMethod:"]];
  
  //! or with method name in Selector
  [self trackingMethodWithSelectors:@selector(viewDidLoad), @selector(privateMethod:), nil];
}
  • Measure all methods in class
- (instancetype)init {
  ...
  
  //! measure all methods
  [self measureAllMethodsTime];
}
  • Want to show all measured time with sorted
//! at a point that you want to see logs.
//! The result will be shown sorted by desc order
...
[self showTrackedMethodTimeLogs];
...

sameple screenshot

Release history: 1.2.1

  • bug fix when swizzling dealloc method
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].