-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathXRObjectAllocRun.m
More file actions
executable file
·24 lines (19 loc) · 954 Bytes
/
XRObjectAllocRun.m
File metadata and controls
executable file
·24 lines (19 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// XRObjectAllocRun.m
// InstrumentsParser
//
// Created by baidu on 14/11/14.
// Copyright (c) 2014年 ___bidu___. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "XRObjectAllocRun.h"
@implementation XRObjectAllocRun
- (NSString *)description
{
NSString *start = [NSDateFormatter localizedStringFromDate:[NSDate dateWithTimeIntervalSince1970:startTime] dateStyle:NSDateFormatterShortStyle timeStyle:NSDateFormatterMediumStyle];
NSString *end = [NSDateFormatter localizedStringFromDate:[NSDate dateWithTimeIntervalSince1970:endTime] dateStyle:NSDateFormatterShortStyle timeStyle:NSDateFormatterMediumStyle];
NSMutableString *result = [NSMutableString stringWithFormat:@"Run %u, starting at %@, running until %@. trackSegments %@, pid %@.\n", (unsigned int)runNumber, start, end, trackSegments, pid];
[result appendFormat:@"_StartTime_:%lf,_EndTime_:%lf.\n", startTime, endTime];
return result;
}
@end