MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / GetThreadCount

Function GetThreadCount

tests/gtest/gtest-all.cc:9821–9825  ·  view source on GitHub ↗

Returns the number of active threads, or 0 when there is an error.

Source from the content-addressed store, hash-verified

9819
9820// Returns the number of active threads, or 0 when there is an error.
9821size_t GetThreadCount() {
9822 const std::string filename =
9823 (Message() << "/proc/" << getpid() << "/stat").GetString();
9824 return ReadProcFileField<size_t>(filename, 19);
9825}
9826
9827#elif GTEST_OS_MAC
9828

Callers 1

AssumeRoleMethod · 0.85

Calls 2

GetStringMethod · 0.80
MessageFunction · 0.70

Tested by

no test coverage detected