[Lldb-commits] [lldb] r168232 - in /lldb/trunk: include/lldb/Target/Process.h source/Target/Process.cpp tools/debugserver/source/DNB.cpp
Han Ming Ong
hanming at apple.com
Fri Nov 16 16:33:14 PST 2012
Author: hanming
Date: Fri Nov 16 18:33:14 2012
New Revision: 168232
URL: http://llvm.org/viewvc/llvm-project?rev=168232&view=rev
Log:
Follow up on <rdar://12720514>. Removed commented out code.
Modified:
lldb/trunk/include/lldb/Target/Process.h
lldb/trunk/source/Target/Process.cpp
lldb/trunk/tools/debugserver/source/DNB.cpp
Modified: lldb/trunk/include/lldb/Target/Process.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Process.h?rev=168232&r1=168231&r2=168232&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/Process.h (original)
+++ lldb/trunk/include/lldb/Target/Process.h Fri Nov 16 18:33:14 2012
@@ -2944,35 +2944,6 @@
Error
DeallocateMemory (lldb::addr_t ptr);
-// virtual Error
-// DoGetProfileData (uint64_t &elapsed_usec,
-// uint64_t &task_used_usec,
-// int &num_threads,
-// uint64_t **threads_id,
-// uint64_t **threads_used_usec,
-// mach_vm_size_t &rprvt,
-// mach_vm_size_t &rsize,
-// mach_vm_size_t &vprvt,
-// mach_vm_size_t &vsize,
-// mach_vm_size_t &dirty_size)
-// {
-// Error error;
-// error.SetErrorStringWithFormat("error: wrong method called.");
-// return error;
-// }
-//
-// Error
-// GetProfileData (uint64_t &elapsed_usec,
-// uint64_t &task_used_usec,
-// int &num_threads,
-// uint64_t **threads_id,
-// uint64_t **threads_used_usec,
-// mach_vm_size_t &rprvt,
-// mach_vm_size_t &rsize,
-// mach_vm_size_t &vprvt,
-// mach_vm_size_t &vsize,
-// mach_vm_size_t &dirty_size);
-
//------------------------------------------------------------------
/// Get any available STDOUT.
///
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=168232&r1=168231&r2=168232&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Fri Nov 16 18:33:14 2012
@@ -2550,12 +2550,7 @@
return error;
}
-//Error
-//Process::GetProfileData (uint64_t &elapsed_usec, uint64_t &task_used_usec, int &num_threads, uint64_t **threads_id, uint64_t **threads_used_usec, mach_vm_size_t &rprvt, mach_vm_size_t &rsize, mach_vm_size_t &vprvt, mach_vm_size_t &vsize, mach_vm_size_t &dirty_size)
-//{
-// return DoGetProfileData(elapsed_usec, task_used_usec, num_threads, threads_id, threads_used_usec, rprvt, rsize, vprvt, vsize, dirty_size);
-//}
-//
+
ModuleSP
Process::ReadModuleFromMemory (const FileSpec& file_spec,
lldb::addr_t header_addr,
Modified: lldb/trunk/tools/debugserver/source/DNB.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/DNB.cpp?rev=168232&r1=168231&r2=168232&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/DNB.cpp (original)
+++ lldb/trunk/tools/debugserver/source/DNB.cpp Fri Nov 16 18:33:14 2012
@@ -1227,16 +1227,6 @@
return NULL;
}
-//nub_bool_t
-//DNBProcessGetProfileData (nub_process_t pid, uint64_t &elapsed_usec, uint64_t &task_used_usec, int &num_threads, uint64_t **threads_id, uint64_t **threads_used_usec, mach_vm_size_t &rprvt, mach_vm_size_t &rsize, mach_vm_size_t &vprvt, mach_vm_size_t &vsize, mach_vm_size_t &dirty_size)
-//{
-// MachProcessSP procSP;
-// if (GetProcessSP (pid, procSP))
-// return procSP->Task().GetProfileData(elapsed_usec, task_used_usec, num_threads, threads_id, threads_used_usec, rprvt, rsize, vprvt, vsize, dirty_size);
-//
-// return false;
-//}
-//
nub_bool_t
DNBProcessSetAsyncEnableProfiling (nub_process_t pid, nub_bool_t enable, uint64_t interval_usec)
{
More information about the lldb-commits
mailing list