Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8762491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:32:39+00:00 2026-06-13T15:32:39+00:00

I have been going through this post regarding newly added features in EmberJS. One

  • 0

I have been going through this post regarding newly added features in EmberJS. One of them being Ember.Instrumentation, can anyone explain where do we use it, if possible with an example…Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:32:41+00:00Added an answer on June 13, 2026 at 3:32 pm

    Why

    Instrumentation in general is a way to measure performance and other metrics in your app by subscribing to namespaced listeners. It can also be useful for debugging.

    Example

    I can’t take credit for making this fiddle, I only saw it last night at the NYC ember.js meetup, but this should provide some context:

    http://jsfiddle.net/2Pn3f/6/

    In my attempt to figure out who presented this, I could only find his meetup profile: http://www.meetup.com/EmberJS-NYC/members/6706336/

    To see the magic happen, open your console and start marking students as ‘here.’

    See the StudentView near the top and Em.Subscribe at the bottom.

    // In a view
    Em.instrument("student.here", this.get('content'), function() {
        //mark student as in attendance
        this.set('inAttendance', !this.get('inAttendance'));
      }, this);
    },
    

    …

    Em.subscribe('*', {
      ts: null,
      before: function(name, timestamp, payload) {
        ts = timestamp;
        //console.log('    before: ', name, JSON.stringify(payload));
        //return 'HelloFromThePast';
      },
      after: function(name, timestamp, payload, beforeRet) {
        //log metrics
        //record analytics
        //profile app
        console.log('instrument: ', name, JSON.stringify(payload), beforeRet, timestamp - ts);
      }
    });
    

    Side note

    What’s even cooler is that you can subscribe to ember’s use of instrumentation by using the wildcard.

    http://jsfiddle.net/dmazza/sUvdg/

    Documentation

    See the documentation for details: http://emberjs.com/api/classes/Ember.Instrumentation.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been going through this page to install zend framework on my machine
I have been going through the core jQuery code and had a few why
I need to learn couchbd and have been going through tutorials on views. I
Recently, I have been going through search trees and I encountered red-black trees, the
I am complete newbie in mod_rewrite , and I have been going through some
I've been going around in circles for hours with this. I have a UserProfile
This is going to be a long post. I would like to have suggestions
I am new to the arena of RESTful services. I have been going through
I've been going through two tutorials to get the code for this project of
I've been working on this for the past few hours, and after going through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.