From 657632ad12bde2ace90c830a8c7fee45385f90eb Mon Sep 17 00:00:00 2001 From: Palmer-JC Date: Tue, 13 Jun 2017 13:18:38 -0400 Subject: [PATCH] Custom Building using browser profiling. Directions in self-contained html file. Can read either the current master or preview config.json files from Github. For making builds against tagged production versions, a local config.json file from repo required. This is only readable by Firefox. --- Tools/Gulp/gulpfile.js | 7 ++ Tools/Gulp/profiling.html | 213 +++++++++++++++++--------------------- 2 files changed, 100 insertions(+), 120 deletions(-) diff --git a/Tools/Gulp/gulpfile.js b/Tools/Gulp/gulpfile.js index 78ec5f533c3..0f89985e5e8 100644 --- a/Tools/Gulp/gulpfile.js +++ b/Tools/Gulp/gulpfile.js @@ -357,6 +357,13 @@ gulp.task("typescript-customConfigurations", function (cb) { runSequence(config.buildConfigurations.distributed, cb); }); +/** + * Custom build with full path file control; used by profile.html + */ +gulp.task("build-custom", function (cb) { + runSequence("typescript-compile", "build", cb); +}); + /** * Do it all. */ diff --git a/Tools/Gulp/profiling.html b/Tools/Gulp/profiling.html index dba7394d11e..84a52780448 100644 --- a/Tools/Gulp/profiling.html +++ b/Tools/Gulp/profiling.html @@ -11,7 +11,7 @@ -Obtain a FireFox performance file by: +Obtain a performance file by:
  1. Make sure scene uses Babylon MAX.
  2. Add the temporary Javascript line window.alert('Turn on Performance Recording') just prior to Engine Instancing line. @@ -21,109 +21,86 @@
On this page:
    +
  1. Select the branch to build the config against. Be sure to change to that branch in repo
  2. Select File with 'Browse' button below, and pick the file saved from above.
  3. Make any changes of name to babylon file names & directory..
  4. -
  5. Click Generate. Tip: change Firefox Option for Downloads to Always ask me where to save files to avoid having to move custom config to Gulp Directory.
  6. +
  7. Click Generate. Tip: change Firefox Option for Downloads to Always ask me where to save files to avoid having to move config with custom entries to Gulp Directory.
  8. Copy the 'custom.cofig.json' file generated in Downloads directory to the Gulp directory.
  9. -
  10. Run: 'Gulp build-custom' then test with scene. Tip: test with the max version generated.
  11. +
  12. Run: 'Gulp build-custom' then test with scene. Tip: test with the generated max version.
  13. If need stuff did not get recorded in performance file, then select file(s) & click Generate again.
+ BJS Version for Build:
+ +
+ + Source of Performance Data: -
- -

+

+ + Output Directory: (clear for default of ../../dist/preview release)
+ Base name: Generates basename.js & basename.max.js - Output Directory: (clear for default of ../../dist/preview release)
- Filename: - minFilename:
- Files Not In Recording: (Select those to still keep) -
- + + + + + + + + +
FoundNot Found: (Select those to keep anyway)