MCPcopy Index your code
hub / github.com/nodejs/node / Set

Method Set

deps/v8/tools/stats-viewer.py:285–300  ·  view source on GitHub ↗

Updates the ui for this counter. Args: value: The value to display Returns: True if the value had changed, otherwise False. The first call always returns True.

(self, value)

Source from the content-addressed store, hash-verified

283 self.last_value = None
284
285 def Set(self, value):
286 """Updates the ui for this counter.
287
288 Args:
289 value: The value to display
290
291 Returns:
292 True if the value had changed, otherwise False. The first call
293 always returns True.
294 """
295 if value == self.last_value:
296 return False
297 else:
298 self.last_value = value
299 self.var.set(self.format % value)
300 return True
301
302
303class SharedDataAccess(object):

Callers 3

RebuildMainWindowMethod · 0.95
test.jsFile · 0.80
UpdateCountersMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected