• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facebook / react-native / 4d9a7017-b8a7-4b9f-88c7-fb35cd561d4b

pending completion
4d9a7017-b8a7-4b9f-88c7-fb35cd561d4b

push

CircleCI

Facebook GitHub Bot
Add PerformanceEventTiming API, according to the standard

3615 of 26397 branches covered (13.69%)

Branch coverage included in aggregate %.

23 of 23 new or added lines in 4 files covered. (100.0%)

7397 of 44564 relevant lines covered (16.6%)

258.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Libraries/WebPerformance/PerformanceEntry.js
1
/**
2
 * Copyright (c) Meta Platforms, Inc. and affiliates.
3
 *
4
 * This source code is licensed under the MIT license found in the
5
 * LICENSE file in the root directory of this source tree.
6
 *
7
 * @format
8
 * @flow strict
9
 */
10

11
export type HighResTimeStamp = number;
12
export type PerformanceEntryType = 'mark' | 'measure' | 'event' | 'first-input';
13

14
export class PerformanceEntry {
×
15
  name: string;
16
  entryType: PerformanceEntryType;
17
  startTime: HighResTimeStamp;
18
  duration: HighResTimeStamp;
19

20
  constructor(init: {
21
    name: string,
22
    entryType: PerformanceEntryType,
23
    startTime: HighResTimeStamp,
24
    duration: HighResTimeStamp,
25
  }) {
×
26
    this.name = init.name;
×
27
    this.entryType = init.entryType;
×
28
    this.startTime = init.startTime;
×
29
    this.duration = init.duration;
×
30
  }
×
31

32
  toJSON(): {
33
    name: string,
34
    entryType: PerformanceEntryType,
35
    startTime: HighResTimeStamp,
36
    duration: HighResTimeStamp,
37
  } {
38
    return {
×
39
      name: this.name,
40
      entryType: this.entryType,
41
      startTime: this.startTime,
42
      duration: this.duration,
43
    };
44
  }
×
45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc