From a589e0d75fa54b5509f8b7119bd5fcb9ba6c195a Mon Sep 17 00:00:00 2001 From: pelikhan Date: Mon, 5 Dec 2022 16:25:02 -0800 Subject: [PATCH] patch: show kb size in refresh --- cli/src/devtools.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/src/devtools.ts b/cli/src/devtools.ts index 6802904165..d3b5cb60b3 100644 --- a/cli/src/devtools.ts +++ b/cli/src/devtools.ts @@ -68,7 +68,11 @@ export async function devtools(options: DevToolsOptions & CmdOptions) { const sendDeviceScript = bytecodeFile ? () => { const bytecode = fs.readFileSync(bytecodeFile) - debug(`refresh bytecode...`) + debug( + `refresh bytecode ${Math.round( + (bytecode.length || 0) / 1000 + )}kb...` + ) const msg = JSON.stringify({ type: "bytecode", channel: "devicescript",