mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Some missing from merge.
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
ec939a5bce
commit
f4be15a7af
1895 changed files with 160408 additions and 53601 deletions
|
|
@ -1,3 +1,5 @@
|
|||
// $Id: Profile_Timer.cpp 96985 2013-04-11 15:50:32Z huangh $
|
||||
|
||||
#include "ace/Profile_Timer.h"
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
|
|
@ -17,9 +19,6 @@
|
|||
#if (defined (ACE_HAS_PRUSAGE_T) || defined (ACE_HAS_GETRUSAGE)) && !defined (ACE_WIN32)
|
||||
|
||||
#include "ace/OS_NS_stdio.h"
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
# include "ace/Malloc_Base.h"
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
|
|
@ -46,7 +45,7 @@ ACE_Profile_Timer::ACE_Profile_Timer (void)
|
|||
# if defined (ACE_HAS_PRUSAGE_T)
|
||||
ACE_OS::memset (&this->last_usage_, 0, sizeof this->last_usage_);
|
||||
char buf[20];
|
||||
ACE_OS::sprintf (buf, 20, "/proc/%d", static_cast<int> (ACE_OS::getpid ()));
|
||||
ACE_OS::sprintf (buf, "/proc/%d", static_cast<int> (ACE_OS::getpid ()));
|
||||
|
||||
this->proc_handle_ = ACE_OS::open (buf, O_RDONLY, 0);
|
||||
if (this->proc_handle_ == -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue