add benchmark for serialize addon

This commit is contained in:
javacs3
2019-11-21 20:41:48 +08:00
parent cd5f3e9740
commit e2df7dc96c
5 changed files with 123 additions and 7 deletions
@@ -182,7 +182,7 @@ export class SerializeAddon implements ITerminalAddon {
throw new Error('Cannot use addon until it has been loaded');
}
const maxRows = this._terminal.rows;
const maxRows = this._terminal.buffer.length;
const handler = new StringSerializeHandler(this._terminal.buffer);
rows = crop(rows, 0, maxRows, maxRows);