expose some meta data on a log export to show before submitting
This commit is contained in:
parent
c0a03858eb
commit
89139bba30
1 changed files with 18 additions and 0 deletions
|
@ -163,6 +163,24 @@ class IDBLogExport {
|
|||
this._platform = platform;
|
||||
}
|
||||
|
||||
get minTimestamp() {
|
||||
if (!this._items.length) {
|
||||
return 0;
|
||||
}
|
||||
return this._items[0].start;
|
||||
}
|
||||
|
||||
get maxTimestamp() {
|
||||
if (!this._items.length) {
|
||||
return 0;
|
||||
}
|
||||
return this._items[this._items.length - 1].end;
|
||||
}
|
||||
|
||||
get count() {
|
||||
return this._items.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {Promise}
|
||||
*/
|
||||
|
|
Reference in a new issue