本文整理汇总了C++中LogManager::EndLogging方法的典型用法代码示例。如果您正苦于以下问题:C++ LogManager::EndLogging方法的具体用法?C++ LogManager::EndLogging怎么用?C++ LogManager::EndLogging使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LogManager
的用法示例。
在下文中一共展示了LogManager::EndLogging方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: iterations
//TODO: mvoe this onbox. it's a baseline perf number for what
//PDUPeerEndpointFD needs to do
TEST_F(PDUPeerEndpointFDUnitTest,
DISABLED_WillReadWritePDUsAsLongAsThereIsRoom)
{
logManager.EndLogging(__FILE__ ".log");
setupDefaultFDPair();
TimerClock c;
c.Start();
const int iterations(1000);
int totalIO(0);
Forte::PDU out;
Forte::PDUPtr pdu = makeTestPDU();
for (int i=0; i<iterations; ++i)
{
while (mEndpoint2->RecvPDU(out))
{
ASSERT_EQ(*pdu, out);
++totalIO;
}
try
{
while (true)
{
mPDUQueue1->EnqueuePDU(pdu);
++totalIO;
}
}
catch (EPDUQueueFull& e)
{
}
}
c.Stop();
hlogstream(HLOG_INFO,
iterations << " iterations took " << c.GetTime()
<< " and processed " << totalIO);
//memmove impl baseline on laptop with ASSERT_EQ commented out
//1000 iterations took 58.369622753 and processed 1003371
teardownDefaultFDPair();
logManager.BeginLogging(__FILE__ ".log", HLOG_ALL);
}
示例2: TearDownTestCase
static void TearDownTestCase() {
logManager.EndLogging(__FILE__ ".log");
logManager.EndLogging("//stderr");
};
示例3: TearDownTestCase
static void TearDownTestCase() {
logManager.EndLogging("//stdout");
}
示例4: TearDownTestCase
static void TearDownTestCase() {
logManager.EndLogging();
}