Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shu223/Stats
In-app memory usage monitoring for iOS
https://github.com/shu223/Stats
Last synced: 3 months ago
JSON representation
In-app memory usage monitoring for iOS
- Host: GitHub
- URL: https://github.com/shu223/Stats
- Owner: shu223
- License: mit
- Created: 2011-04-27T17:07:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2020-03-28T22:34:11.000Z (over 4 years ago)
- Last Synced: 2024-05-01T20:40:32.494Z (6 months ago)
- Language: Objective-C
- Homepage:
- Size: 362 KB
- Stars: 173
- Watchers: 16
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - Stats - In-app memory usage monitoring. (Code Quality)
- awesome-ios-star - Stats - In-app memory usage monitoring. (Code Quality)
README
## What's Stats
Stats **displays load statuses** such as the memory usage, the CPU load, and the number of subviews **in-app**, and **in realtime**.
## How to use
**Just add on your view**!
1. Add Stats.h, Stats.m to your project
2. As with UILabel, add wherever you like.```objc
self.stats = [[Stats alloc] initWithFrame:CGRectMake(20, 40, 100.0, 60.0)];
[self.window addSubview:self.stats];
```## Parameters and the units
![](README_images/stats_up.png)
From top to bottom,
- The variation of memory usage [kB]
- The total memory usage [kB]
- The variation of CPU time [msec]
- The number of UIView subclasses## Demo
A full Xcode demo project is included in the "StatsDemo" directory.
## Articles
- [English](http://d.hatena.ne.jp/shu223/20111118/1321576538)
- [Japanese](http://d.hatena.ne.jp/shu223/20110428/1303930059)