Surf-N-Perf icon indicating copy to clipboard operation
Surf-N-Perf copied to clipboard

Single Mark Helper

Open JohnRiv opened this issue 8 years ago • 0 comments

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.

JohnRiv avatar Feb 02 '17 17:02 JohnRiv