Browse Source

enable profiling in development mode

Mitsuhiro Tanda 9 years ago
parent
commit
975b53b318
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/components/grafana_app.ts

+ 1 - 1
public/app/core/components/grafana_app.ts

@@ -17,7 +17,7 @@ export class GrafanaCtrl {
 
       $scope._ = _;
 
-      $rootScope.profilingEnabled = store.getBool('profilingEnabled');
+      $rootScope.profilingEnabled = store.getBool('profilingEnabled') || config.buildInfo.env === 'development';
       $rootScope.performance = { loadStart: new Date().getTime() };
       $rootScope.appSubUrl = config.appSubUrl;