-
Notifications
You must be signed in to change notification settings - Fork 0
/
RPRubyTraceLogReader.h
43 lines (32 loc) · 1.2 KB
/
RPRubyTraceLogReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// RPRubyTraceLogReader.h
// Rampler
//
// Copyright 2010-2012 Fotonauts. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "RPStackFrame.h"
#import "RPLogReader.h"
@class RPSampleSession;
@interface RPRubyTraceLogReader : NSObject<RPLogReader> {
// declare those vars so they can be mutable internally
NSMutableString *beginningInfoDescription;
NSMutableString *endingInfoDescription;
NSInteger _currentPosition;
}
@property (nonatomic, readwrite, assign) NSInteger logLineNumber;
@property (nonatomic, readwrite) NSData* data;
@property (nonatomic, readwrite, weak) RPStackFrame* currentLine;
@property (nonatomic, readonly) NSString *beginningInfoDescription;
@property (nonatomic, readonly) NSString *endingInfoDescription;
@property (nonatomic, readonly, assign) double interval;
@property (nonatomic, readonly) NSURL* url;
@property (nonatomic, readonly) NSDate* startDate;
@property (nonatomic, readonly, assign) double duration;
@property (nonatomic, readonly, assign) NSUInteger sampleCount;
@property (nonatomic) NSError* parseError;
- (id) initWithData:(NSData*)data;
- (BOOL) readData;
- (RPStackFrame*) parseLine:(NSString*)line;
- (RPSampleSession*)sampleSession;
@end