Follow up on <rdar://12720514>. Removed commented out code.
authorHan Ming Ong <hanming@apple.com>
Sat, 17 Nov 2012 00:33:14 +0000 (00:33 +0000)
committerHan Ming Ong <hanming@apple.com>
Sat, 17 Nov 2012 00:33:14 +0000 (00:33 +0000)
llvm-svn: 168232

lldb/include/lldb/Target/Process.h
lldb/source/Target/Process.cpp
lldb/tools/debugserver/source/DNB.cpp

index 2fb41ed..5794672 100644 (file)
@@ -2944,35 +2944,6 @@ public:
     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.
     ///
index 6ece319..4b21c0b 100644 (file)
@@ -2550,12 +2550,7 @@ Process::DeallocateMemory (addr_t ptr)
     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, 
index 9b6d98b..90df012 100644 (file)
@@ -1227,16 +1227,6 @@ DNBProcessGetProfileDataAsCString (nub_process_t pid)
     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)
 {