add timing info for flx creation

This commit is contained in:
Devon Carew
2016-02-26 10:03:42 -08:00
parent 0c05666ee1
commit ee8f325bc0
5 changed files with 18 additions and 9 deletions

View File

@@ -123,7 +123,7 @@ class RunCommand extends RunCommandBase {
debugPort: debugPort
);
printTrace('Finished start command.');
printTrace('Finished $name command.');
return result;
}
}

View File

@@ -256,7 +256,7 @@ Future<int> build(
Future<int> assemble({
Map manifestDescriptor: const {},
ArchiveFile snapshotFile: null,
ArchiveFile snapshotFile,
String assetBasePath: defaultAssetBasePath,
String materialAssetBasePath: defaultMaterialAssetBasePath,
String outputPath: defaultFlxOutputPath,
@@ -287,11 +287,15 @@ Future<int> assemble({
if (fontManifest != null)
archive.addFile(fontManifest);
await CipherParameters.get().seedRandom();
printTrace('Calling CipherParameters.seedRandom().');
CipherParameters.get().seedRandom();
AsymmetricKeyPair keyPair = keyPairFromPrivateKeyFileSync(privateKeyPath);
printTrace('KeyPair from $privateKeyPath: $keyPair.');
printTrace('Encoding zip file.');
Uint8List zipBytes = new Uint8List.fromList(new ZipEncoder().encode(archive));
ensureDirectoryExists(outputPath);
printTrace('Creating flx at ${outputPath}.');
Bundle bundle = new Bundle.fromContent(
path: outputPath,
manifest: manifestDescriptor,