APIs

Show:
  1. /**
  2. @module ember-flexberry
  3. */
  4.  
  5. /**
  6. Initializes {{#crossLink "PertService"}}perf service{{/crossLink}}
  7. to make it possible prehandle any application messages and store them into application perf.
  8.  
  9. @for ApplicationInstanceInitializer
  10. @method perf.initialize
  11. @param {<a href="https://www.emberjs.com/api/ember/release/classes/ApplicationInstance">ApplicationInstance</a>} applicationInstance Ember application instance.
  12. */
  13. export function initialize(applicationInstance) {
  14. // Instantiate perf service to force it's initialization logic execution.
  15. applicationInstance.lookup('service:perf');
  16. }
  17.  
  18. export default {
  19. name: 'perf',
  20. initialize: initialize
  21. };
  22.