Merge pull request #2211 from devoncarew/flx_times

add timing info for flx creation
This commit is contained in:
Devon Carew
2016-02-26 10:44:45 -08:00
5 changed files with 18 additions and 9 deletions

View File

@@ -128,7 +128,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,