calculating the action length without writing it to a stream

This commit is contained in:
2015-07-17 09:19:51 +02:00
parent 3e7d891280
commit a6dc717225
35 changed files with 454 additions and 326 deletions
@@ -52,6 +52,7 @@ import com.jpexs.decompiler.flash.tags.base.ASMSource;
import com.jpexs.decompiler.graph.CompilationException;
import com.jpexs.helpers.CancellableWorker;
import com.jpexs.helpers.Helper;
import com.jpexs.helpers.Stopwatch;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
@@ -423,7 +424,9 @@ public class ActionPanel extends JPanel implements SearchListener<ActionSearchRe
}
DisassemblyListener listener = getDisassemblyListener();
asm.addDisassemblyListener(listener);
Stopwatch sw = Stopwatch.startNew();
ActionList actions = asm.getActions();
System.out.println("t:" + sw.getElapsedMilliseconds());
lastCode = actions;
asm.removeDisassemblyListener(listener);
srcWithHex = null;