Skip to content

Commit f9bb2c1

Browse files
committed
expose one more function to be called externally
1 parent 9b2cd66 commit f9bb2c1

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

microprofile.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ void MicroProfileStringsDestroy(MicroProfileStrings* pStrings);
16131613

16141614
MicroProfileToken MicroProfileCounterTokenInit(int nParent);
16151615
void MicroProfileCounterTokenInitName(MicroProfileToken nToken, const char* pName);
1616-
void MicroProfileCounterConfigInternal(MicroProfileToken, uint32_t eFormat, int64_t nLimit, uint32_t nFlags);
1616+
void MicroProfileCounterConfigToken(MicroProfileToken, uint32_t eFormat, int64_t nLimit, uint32_t nFlags);
16171617
uint16_t MicroProfileFindGroup(const char* pGroup);
16181618

16191619
inline std::recursive_mutex& MicroProfileMutex()
@@ -1768,7 +1768,7 @@ void MicroProfileInit()
17681768
#if MICROPROFILE_FRAME_EXTRA_DATA
17691769
S.FrameExtraCounterData = (MicroProfileFrameExtraCounterData*)1;
17701770
#endif
1771-
MicroProfileCounterConfigInternal(S.CounterToken_Alloc_Memory, MICROPROFILE_COUNTER_FORMAT_BYTES, 0, MICROPROFILE_COUNTER_FLAG_DETAILED);
1771+
MicroProfileCounterConfigToken(S.CounterToken_Alloc_Memory, MICROPROFILE_COUNTER_FORMAT_BYTES, 0, MICROPROFILE_COUNTER_FLAG_DETAILED);
17721772
MICROPROFILE_COUNTER_CONFIG("MicroProfile/ThreadLog/Memory", MICROPROFILE_COUNTER_FORMAT_BYTES, 0, MICROPROFILE_COUNTER_FLAG_DETAILED);
17731773

17741774
if(bUseLock)
@@ -3090,7 +3090,7 @@ void MicroProfileCounterSetLimit(MicroProfileToken nToken, int64_t nCount)
30903090
S.CounterInfo[nToken].nLimit = nCount;
30913091
}
30923092

3093-
void MicroProfileCounterConfigInternal(MicroProfileToken nToken, uint32_t eFormat, int64_t nLimit, uint32_t nFlags)
3093+
void MicroProfileCounterConfigToken(MicroProfileToken nToken, uint32_t eFormat, int64_t nLimit, uint32_t nFlags)
30943094
{
30953095
S.CounterInfo[nToken].eFormat = (MicroProfileCounterFormat)eFormat;
30963096
S.CounterInfo[nToken].nLimit = nLimit;
@@ -3100,7 +3100,7 @@ void MicroProfileCounterConfigInternal(MicroProfileToken nToken, uint32_t eForma
31003100
void MicroProfileCounterConfig(const char* pName, uint32_t eFormat, int64_t nLimit, uint32_t nFlags)
31013101
{
31023102
MicroProfileToken nToken = MicroProfileGetCounterToken(pName, 0);
3103-
MicroProfileCounterConfigInternal(nToken, eFormat, nLimit, nFlags);
3103+
MicroProfileCounterConfigToken(nToken, eFormat, nLimit, nFlags);
31043104
}
31053105

31063106
void MicroProfileCounterSetPtr(const char* pCounterName, void* pSource, uint32_t nSize)

microprofile.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ extern "C"
946946
MICROPROFILE_API void MicroProfileCounterSet(MicroProfileToken nToken, int64_t nCount);
947947
MICROPROFILE_API void MicroProfileCounterSetLimit(MicroProfileToken nToken, int64_t nCount);
948948
MICROPROFILE_API void MicroProfileCounterConfig(const char* pCounterName, uint32_t nFormat, int64_t nLimit, uint32_t nFlags);
949+
MICROPROFILE_API void MicroProfileCounterConfigToken(MicroProfileToken nToken, uint32_t nFormat, int64_t nLimit, uint32_t nFlags);
949950
MICROPROFILE_API void MicroProfileCounterSetPtr(const char* pCounterName, void* pValue, uint32_t nSize);
950951
MICROPROFILE_API void MicroProfileCounterFetchCounters();
951952
MICROPROFILE_API void MicroProfileLocalCounterAdd(int64_t* pCounter, int64_t nCount);

0 commit comments

Comments
 (0)