Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Mark Helper #55

Open
JohnRiv opened this issue Feb 2, 2017 · 0 comments
Open

Single Mark Helper #55

JohnRiv opened this issue Feb 2, 2017 · 0 comments

Comments

@JohnRiv
Copy link
Member

JohnRiv commented Feb 2, 2017

Since it's currently only possible to have one value for a key (see Issue #54), that results in code like this when you only want to mark a key the first time it happens:

if (!surfnperf.getMark('fetchData')) {
  surfnperf.mark('fetchData');
}

A markOnce helper method to provide that same functionality would be useful.

We should determine a plan around this & #54 before our next release.

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

No branches or pull requests

1 participant