本文整理汇总了C++中INC_STATS函数的典型用法代码示例。如果您正苦于以下问题:C++ INC_STATS函数的具体用法?C++ INC_STATS怎么用?C++ INC_STATS使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了INC_STATS函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: nameAttrGetter
static v8::Handle<v8::Value> nameAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.TestException.name._get");
TestException* imp = V8TestException::toNative(info.Holder());
return v8String(imp->name(), info.GetIsolate());
}
示例2: attr2AttrGetter
static v8::Handle<v8::Value> attr2AttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.TestEventConstructor.attr2._get");
TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder());
return v8String(imp->attr2(), info.GetIsolate());
}
示例3: INC_STATS
v8::Handle<v8::Value> V8WebGLUnsignedShortArray::setCallback(const v8::Arguments& args)
{
INC_STATS("DOM.WebGLUnsignedShortArray.set()");
return setWebGLArray<WebGLUnsignedShortArray, V8WebGLUnsignedShortArray>(args, V8ClassIndex::WEBGLUNSIGNEDSHORTARRAY);
}
示例4: dataAttrGetter
static v8::Handle<v8::Value> dataAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.TextEvent.data._get");
TextEvent* imp = V8TextEvent::toNative(info.Holder());
return v8String(imp->data());
}
示例5: INC_STATS
v8::Handle<v8::Value> V8ScriptProfileNode::callUIDAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.ScriptProfileNode.callUIDAccessorGetter");
ScriptProfileNode* imp = V8ScriptProfileNode::toNative(info.Holder());
return v8::Number::New(imp->callUID());
}
示例6: farthestViewportElementAttrGetter
static v8::Handle<v8::Value> farthestViewportElementAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.SVGLocatable.farthestViewportElement._get");
SVGLocatable* imp = V8SVGLocatable::toNative(info.Holder());
return toV8(imp->farthestViewportElement());
}
示例7: yAttrGetter
static v8::Handle<v8::Value> yAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.SVGPathSegLinetoVerticalAbs.y._get");
SVGPathSegLinetoVerticalAbs* imp = V8SVGPathSegLinetoVerticalAbs::toNative(info.Holder());
return v8::Number::New(imp->y());
}
示例8: INC_STATS
v8::Handle<v8::Value> V8DOMSettableTokenList::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info)
{
INC_STATS("DOM.DOMSettableTokenList.IndexedPropertyGetter");
DOMSettableTokenList* list = V8DOMSettableTokenList::toNative(info.Holder());
return v8StringOrNull(list->item(index));
}
示例9: excitingAttrAttrGetter
static v8::Handle<v8::Value> excitingAttrAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.TestActiveDOMObject.excitingAttr._get");
TestActiveDOMObject* imp = V8TestActiveDOMObject::toNative(info.Holder());
return v8Integer(imp->excitingAttr(), info.GetIsolate());
}
示例10: INC_STATS
v8::Handle<v8::Value> V8Console::memoryAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.Console.memoryAccessorGetter");
Console* imp = V8Console::toNative(info.Holder());
return toV8(imp->memory(), info.Holder(), info.GetIsolate());
}
示例11: INC_STATS
v8::Handle<v8::Value> V8WebGLByteArray::constructorCallback(const v8::Arguments& args)
{
INC_STATS("DOM.WebGLByteArray.Contructor");
return constructWebGLArray<WebGLByteArray, signed char>(args, &info, v8::kExternalByteArray);
}
示例12: INC_STATS
v8::Handle<v8::Value> V8DatabaseSync::readTransactionCallback(const v8::Arguments& args)
{
INC_STATS("DOM.DatabaseSync.readTransaction()");
return createTransaction(args, true);
}
示例13: SpySetName
VOID
SpySetName (
__inout PRECORD_LIST RecordList,
__in PDEVICE_OBJECT DeviceObject,
__in_opt PFILE_OBJECT FileObject,
__in ULONG LookupFlags,
__in_opt PVOID Context
)
/*++
Routine Description:
This routine looks up the FileObject in the hash table. If the FileObject
is found in the hash table, copy the associated file name to RecordList.
Otherwise, calls NLGetFullPathName to try to get the name of the FileObject.
If successful, copy the file name to the RecordList and insert into hash
table.
Arguments:
RecordList - RecordList to copy name to.
FileObject - the FileObject to look up.
LookInFileObject - see routine description
DeviceExtension - contains the volume name (e.g., "c:") and
the next device object which may be needed.
Return Value:
None.
--*/
{
PFILESPY_DEVICE_EXTENSION devExt = DeviceObject->DeviceExtension;
UINT_PTR hashIndex;
KIRQL oldIrql;
PHASH_ENTRY pHash;
PHASH_ENTRY newHash;
PLIST_ENTRY listHead;
PNAME_CONTROL newName = NULL;
PCHAR buffer = NULL;
NTSTATUS status;
BOOLEAN cacheName;
UNREFERENCED_PARAMETER( Context );
try {
if (FileObject == NULL) {
SpyCopyFileNameToLogRecord( &RecordList->LogRecord, &gEmptyUnicode );
leave;
}
hashIndex = HASH_FUNC(FileObject);
INC_STATS(TotalContextSearches);
listHead = &gHashTable[hashIndex];
//
// Don't bother checking the hash if we are in create, we must always
// generate a name.
//
if (!FlagOn(LookupFlags, NLFL_IN_CREATE)) {
//
// Acquire the hash lock
//
KeAcquireSpinLock( &gHashLockTable[hashIndex], &oldIrql );
pHash = SpyHashBucketLookup( &gHashTable[hashIndex], FileObject );
if (pHash != NULL) {
//
// Copy the found file name to the LogRecord
//
SpyCopyFileNameToLogRecord( &RecordList->LogRecord, &pHash->Name );
KeReleaseSpinLock( &gHashLockTable[hashIndex], oldIrql );
INC_STATS( TotalContextFound );
leave;
}
KeReleaseSpinLock( &gHashLockTable[hashIndex], oldIrql );
}
#if WINVER >= 0x0501
//
// We can not allocate paged pool if this is a paging file. If it is
// a paging file set a default name and return
//
#if __NDAS_FS__
//.........这里部分代码省略.........