blob: b64f7829d52d850649889f9b0ace9985c7b6211e [file] [log] [blame]
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the COPYING file or at
// https://developers.google.com/open-source/licenses/bsd
// Utilities for example applications (for the worker threads only).
function workerAddToLog(text) {
postMessage({type: 'addToLog', data: text});
}
function workerAddToSummary(text) {
postMessage({type: 'addToSummary', data: text});
}
function workerMeasureValue(value) {
postMessage({type: 'measureValue', data: value});
}