2020-07-27 08:39:21 +00:00
|
|
|
// Copyright 2020 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2020-10-19 10:13:33 +00:00
|
|
|
export class LogEntry {
|
2020-10-19 10:45:42 +00:00
|
|
|
_time;
|
|
|
|
_type;
|
2020-07-27 08:39:21 +00:00
|
|
|
constructor(type, time) {
|
2020-11-03 08:01:33 +00:00
|
|
|
// TODO(zcankara) remove type and add empty getters to override
|
2020-10-19 10:45:42 +00:00
|
|
|
this._time = time;
|
|
|
|
this._type = type;
|
2020-07-27 08:39:21 +00:00
|
|
|
}
|
2020-08-25 06:31:43 +00:00
|
|
|
get time() {
|
2020-10-19 10:45:42 +00:00
|
|
|
return this._time;
|
2020-07-27 08:39:21 +00:00
|
|
|
}
|
2020-08-25 06:31:43 +00:00
|
|
|
get type() {
|
2020-10-19 10:45:42 +00:00
|
|
|
return this._type;
|
2020-07-27 08:39:21 +00:00
|
|
|
}
|
2020-10-19 10:13:33 +00:00
|
|
|
// Returns an Array of all possible #type values.
|
|
|
|
static get allTypes() {
|
2020-11-03 08:01:33 +00:00
|
|
|
throw new Error('Not implemented.');
|
2020-10-19 10:13:33 +00:00
|
|
|
}
|
2020-11-30 18:38:13 +00:00
|
|
|
}
|