IPerfCounters::Increment

Convenience method for incrementing a transient counter.

Windows
MacOS
Linux

References

Module

PerfCounters

Header

/Engine/Source/Runtime/PerfCounters/Public/PerfCountersModule.h

Include

#include "PerfCountersModule.h"

Syntax

int32 Increment
(
    const FString & Name,
    int32 Add,
    int32 DefaultValue,
    uint32 Flags
)

Remarks

Convenience method for incrementing a transient counter.

Returns

current value (i.e. after the increment)

Parameters

Parameter

Description

Name

the name of the counter

Add

value of the increment (will be added to the counter, can be negative)

DefaultValue

if the counter did not exist or was cleared, this is what it will be initialized to before performing the addition

Flags

flags for the counter

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss