OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "core/timing/PerformanceEntry.h" | 32 #include "core/timing/PerformanceEntry.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 PerformanceEntry::PerformanceEntry(const String& name, const String& entryType,
double startTime, double finishTime) | 36 PerformanceEntry::PerformanceEntry(const String& name, const String& entryType,
double startTime, double finishTime) |
37 : m_name(name) | 37 : m_name(name) |
38 , m_entryType(entryType) | 38 , m_entryType(entryType) |
39 , m_startTime(startTime) | 39 , m_startTime(startTime) |
40 , m_duration(finishTime - startTime) | 40 , m_duration(finishTime - startTime) |
41 { | 41 { |
42 ScriptWrappable::init(this); | |
43 } | 42 } |
44 | 43 |
45 PerformanceEntry::~PerformanceEntry() | 44 PerformanceEntry::~PerformanceEntry() |
46 { | 45 { |
47 } | 46 } |
48 | 47 |
49 String PerformanceEntry::name() const | 48 String PerformanceEntry::name() const |
50 { | 49 { |
51 return m_name; | 50 return m_name; |
52 } | 51 } |
53 | 52 |
54 String PerformanceEntry::entryType() const | 53 String PerformanceEntry::entryType() const |
55 { | 54 { |
56 return m_entryType; | 55 return m_entryType; |
57 } | 56 } |
58 | 57 |
59 double PerformanceEntry::startTime() const | 58 double PerformanceEntry::startTime() const |
60 { | 59 { |
61 return m_startTime; | 60 return m_startTime; |
62 } | 61 } |
63 | 62 |
64 double PerformanceEntry::duration() const | 63 double PerformanceEntry::duration() const |
65 { | 64 { |
66 return m_duration; | 65 return m_duration; |
67 } | 66 } |
68 | 67 |
69 } // namespace blink | 68 } // namespace blink |
OLD | NEW |