88f7740636
Bug: v8:10644 Change-Id: I83801396fe683173349d14a7590828ec86587eac Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2575122 Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org> Commit-Queue: Camillo Bruni <cbruni@chromium.org> Cr-Commit-Position: refs/heads/master@{#71655}
24 lines
522 B
JavaScript
24 lines
522 B
JavaScript
// 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.
|
|
import {LogEntry} from './log.mjs';
|
|
|
|
export class ApiLogEntry extends LogEntry {
|
|
constructor(type, time, name) {
|
|
super(type, time);
|
|
this._name = name;
|
|
}
|
|
|
|
toString() {
|
|
return `Api(${this.type})`;
|
|
}
|
|
|
|
toStringLong() {
|
|
return `Api(${this.type}): ${this._name}`;
|
|
}
|
|
|
|
static get propertyNames() {
|
|
return ['type', 'name'];
|
|
}
|
|
}
|