Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceEntry.h

Issue 2244813002: LongTaskTiming: add idl, Experiment flag, PerformanceEntry and basic implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge issue in flags Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 public: 51 public:
52 virtual ~PerformanceEntry(); 52 virtual ~PerformanceEntry();
53 53
54 enum EntryType { 54 enum EntryType {
55 Invalid = 0, 55 Invalid = 0,
56 Composite = 1 << 1, 56 Composite = 1 << 1,
57 Mark = 1 << 2, 57 Mark = 1 << 2,
58 Measure = 1 << 3, 58 Measure = 1 << 3,
59 Render = 1 << 4, 59 Render = 1 << 4,
60 Resource = 1 << 5, 60 Resource = 1 << 5,
61 LongTask = 1 << 6,
61 }; 62 };
62 63
63 String name() const; 64 String name() const;
64 String entryType() const; 65 String entryType() const;
65 double startTime() const; 66 double startTime() const;
66 double duration() const; 67 double duration() const;
67 68
68 ScriptValue toJSONForBinding(ScriptState*) const; 69 ScriptValue toJSONForBinding(ScriptState*) const;
69 70
70 PerformanceEntryType entryTypeEnum() const { return m_entryTypeEnum; } 71 PerformanceEntryType entryTypeEnum() const { return m_entryTypeEnum; }
(...skipping 21 matching lines...) Expand all
92 const String m_name; 93 const String m_name;
93 const String m_entryType; 94 const String m_entryType;
94 const double m_startTime; 95 const double m_startTime;
95 const double m_duration; 96 const double m_duration;
96 const PerformanceEntryType m_entryTypeEnum; 97 const PerformanceEntryType m_entryTypeEnum;
97 }; 98 };
98 99
99 } // namespace blink 100 } // namespace blink
100 101
101 #endif // PerformanceEntry_h 102 #endif // PerformanceEntry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698