Module: AppProfiler::Yarn::WithSpeedscope

Includes:
Command
Included in:
Viewer::SpeedscopeRemoteViewer::Middleware, Viewer::SpeedscopeViewer
Defined in:
lib/app_profiler/yarn/with_speedscope.rb

Instance Method Summary collapse

Methods included from Command

#yarn

Instance Method Details

#setup_yarnObject



8
9
10
11
12
13
14
# File 'lib/app_profiler/yarn/with_speedscope.rb', line 8

def setup_yarn
  super
  # We currently only support this gem in the root Gemfile.
  # See https://github.com/Shopify/app_profiler/issues/15
  # for more information
  yarn("add", "speedscope", "--dev", "--ignore-workspace-root-check") unless speedscope_added?
end