Skip to content

Instantly share code, notes, and snippets.

@BlooJeans
Created February 22, 2016 15:27
Show Gist options
  • Save BlooJeans/610ac9cd73daebea1d01 to your computer and use it in GitHub Desktop.
Save BlooJeans/610ac9cd73daebea1d01 to your computer and use it in GitHub Desktop.
Slow meteor build "linker File#getPrelinkedOutput"
| (#9) Profiling: ProjectContext prepareProjectForBuild
| Building package webpack:webpack /
| ProjectContext prepareProjectForBuild...........................781 ms (1)
| ├─ _initializeCatalog...........................................162 ms (1)
| │ └─ files.rm_recursive 55 ms (48)
| ├─ _downloadMissingPackages.....................................498 ms (1)
| │ ├─ Isopack.readMetadataFromDirectory.........................404 ms (124)
| │ │ ├─ files.exists 123 ms (124)
| │ │ └─ files.readFile 272 ms (124)
| │ └─ other _downloadMissingPackages 93 ms
| └─ _buildLocalPackages..........................................109 ms (1)
| └─ IsopackCache Build local isopack...........................98 ms (11)
| └─ watch.isUpToDate........................................90 ms (11)
| └─ files.readFile 71 ms (149)
|
| Top leaves:
| files.readFile.............................................355 ms (297)
| files.exists...............................................167 ms (136)
|
| (#9) Total: 781 ms (ProjectContext prepareProjectForBuild)
|
| (#10) Profiling: Rebuild Appbpack /
| Building the application /
| files.readFile 3 ms (3)
| files.exists 1 ms (4)
| files.writeFileAtomically.......................................191 ms (1)
| └─ files.writeFile 188 ms (1)
| Rebuild App.................................................123,068 ms (1)
| ├─ compiler.compile(the app)....................................320 ms (1)
| │ └─ compileUnibuild (the app).................................319 ms (2)
| │ ├─ files.readdir 111 ms (110)
| │ ├─ files.readFile 106 ms (169)
| │ └─ other compileUnibuild (the app) 55 ms
| ├─ bundler.bundle..makeClientTarget...........................9,946 ms (1)
| │ └─ Target#make.............................................9,946 ms (1)
| │ ├─ Target#_runCompilerPlugins...........................9,701 ms (1)
| │ │ ├─ files.realpath 208 ms (105)
| │ │ ├─ plugin ecmascript....................................94 ms (2)
| │ │ │ └─ Babel.compile 63 ms (59)
| │ │ └─ plugin webpack:webpack............................9,318 ms (1)
| │ │ ├─ wrapped.fs.readdirSync 6,182 ms (8691)
| │ │ ├─ wrapped.fs.statSync 1,509 ms (98492)
| │ │ └─ other plugin webpack:webpack 1,581 ms
| │ ├─ Target#_emitResources..................................135 ms (1)
| │ │ └─ PackageSourceBatch.computeJsOutputFilesMap..........122 ms (1)
| │ │ └─ ImportScanner#_readFile...........................68 ms (116)
| │ │ └─ files.readFile 65 ms (116)
| │ └─ ClientTarget#minifyCss..................................65 ms (1)
| │ └─ mergeCss 61 ms (1)
| ├─ bundler.bundle..makeServerTarget.........................111,416 ms (1)
| │ └─ Target#make...........................................111,416 ms (1)
| │ ├─ Target#_runCompilerPlugins..........................13,748 ms (1)
| │ │ ├─ files.realpath 127 ms (114)
| │ │ ├─ plugin ecmascript...................................193 ms (2)
| │ │ │ ├─ Babel.compile 132 ms (63)
| │ │ │ └─ other plugin ecmascript 60 ms
| │ │ └─ plugin webpack:webpack...........................13,368 ms (1)
| │ │ ├─ wrapped.fs.readdirSync 5,352 ms (8691)
| │ │ ├─ wrapped.fs.statSync 1,762 ms (98492)
| │ │ └─ other plugin webpack:webpack 6,208 ms
| │ └─ Target#_emitResources...............................97,648 ms (1)
| │ ├─ PackageSourceBatch.computeJsOutputFilesMap........3,363 ms (1)
| │ │ ├─ ImportScanner#_findImportedModuleIdentifiers 2,891 ms (146)
| │ │ ├─ ImportScanner#_tryToResolveImportedPath 83 ms (356)
| │ │ └─ ImportScanner#_readFile..........................354 ms (112)
| │ │ └─ files.readFile 347 ms (112)
| │ └─ PackageSourceBatch#getResources..................94,280 ms (125)
| │ └─ PackageSourceBatch#_linkJS....................94,279 ms (125)
| │ ├─ linker.fullLink............................94,044 ms (1)
| │ │ └─ linker Module#getPrelinkedFiles.........94,007 ms (1)
| │ │ ├─ linker File#getPrelinkedOutput 92,270 ms (1)
| │ │ └─ getPrelinkedFiles toStringWithSourceMap 1,721 ms (1)
| │ └─ other PackageSourceBatch#_linkJS 184 ms
| └─ bundler writeSiteArchive...................................1,378 ms (1)
| ├─ files.exists 127 ms (1)
| ├─ Builder#write..............................................61 ms (4)
| │ └─ files.readFile 60 ms (1)
| └─ bundler writeTargetToPath...............................1,189 ms (2)
| ├─ ClientTarget#write 727 ms (1)
| └─ ServerTarget#write.....................................458 ms (1)
| ├─ JsImage#write.......................................329 ms (1)
| │ ├─ Builder#write....................................134 ms (256)
| │ │ └─ files.writeFile 97 ms (2)
| │ └─ other JsImage#write 155 ms
| └─ other ServerTarget#write 78 ms
|
| Top leaves:
| linker File#getPrelinkedOutput..........................92,270 ms (1)
| wrapped.fs.readdirSync..................................11,533 ms (17382)
| other plugin webpack:webpack.............................7,789 ms (2)
| wrapped.fs.statSync......................................3,271 ms (196984)
| ImportScanner#_findImportedModuleIdentifiers.............2,892 ms (289)
| getPrelinkedFiles toStringWithSourceMap..................1,721 ms (1)
| files.readFile.............................................725 ms (414)
| files.realpath.............................................364 ms (273)
| files.writeFile............................................331 ms (7)
| Babel.compile..............................................195 ms (122)
| other PackageSourceBatch#_linkJS...........................184 ms (125)
| other JsImage#write........................................155 ms (1)
| files.exists...............................................129 ms (9)
| files.readdir..............................................111 ms (110)
|
| (#10) Total: 123,263 ms (Rebuild App)
@vsheyanov
Copy link

Hi!
Were you able to fix this error with: linker File#getPrelinkedOutput..........................92,270 ms (1)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment