Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Issue 7281007: expose counter in d8 (Closed)

Created:
9 years, 5 months ago by Yang
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

expose counter in d8 TEST=./d8 test/mjsunit/mjsunit.js test/mjsunit/d8-counter.js

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -5 lines) Patch
M src/d8.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/d8.cc View 2 chunks +39 lines, -5 lines 4 comments Download
A test/mjsunit/d8-counter.js View 1 chunk +66 lines, -0 lines 1 comment Download

Messages

Total messages: 3 (0 generated)
Yang
Hi, I just implemented a prototype for exposing counters in D8. I did it similar ...
9 years, 5 months ago (2011-06-29 12:02:20 UTC) #1
Mads Ager (chromium)
I'm not sure I understand why we would want to expose counters to JavaScript? Counters ...
9 years, 5 months ago (2011-06-29 12:22:43 UTC) #2
Yang
9 years, 5 months ago (2011-06-29 14:41:34 UTC) #3
I guess the agreement offline is not to it this way.

On 2011/06/29 12:22:43, Mads Ager wrote:
> I'm not sure I understand why we would want to expose counters to JavaScript?
> 
> Counters is an internal programmer tool that we use to gather statistics for a
> while and then delete again. I don't think we should do testing at that level.
I
> would test behavior in  tests and performance in benchmarks. If we are making
a
> change that improves performance I think we should create a benchmark that
shows
> it to stop us from regressing. If we want to make sure that a test hits a
> certain state, we should add functionality to force it instead of relying on
> counters I think.
> 
> There might be compelling use cases that I haven't thought of? :-)

Powered by Google App Engine
This is Rietveld 408576698