OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_H_ |
| 6 #define IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 // A view that contains memory information (e.g. amount of free memory) and |
| 11 // tools (e.g. trigger memory warning) to help investigate memory issues and |
| 12 // performance. |
| 13 // |
| 14 // The debugger ensures that it remains visible by continuously calling |
| 15 // bringSubviewToFront on it's parent so it should be added as a subview of the |
| 16 // the application's window in order to stay visible all the times. |
| 17 // |
| 18 // The debugger owns some timers that must be invalidated before it can be |
| 19 // deallocated so the owner must call |invalidateTimers| before a MemoryDebugger |
| 20 // instance can be deallocated. |
| 21 @interface MemoryDebugger : UIView<UITextFieldDelegate> |
| 22 // Must be called before the object can be deallocated! |
| 23 - (void)invalidateTimers; |
| 24 @end |
| 25 |
| 26 #endif // IOS_CHROME_BROWSER_MEMORY_MEMORY_DEBUGGER_H_ |
OLD | NEW |