summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachVMMemory.h
diff options
context:
space:
mode:
authorHan Ming Ong <hanming@apple.com>2013-03-04 21:25:51 +0000
committerHan Ming Ong <hanming@apple.com>2013-03-04 21:25:51 +0000
commit8764fe7d9aa133b037528f1d118e6a6259f2f0ee (patch)
tree46526a13451d1492f3b4abf27b1cf3def48df723 /lldb/tools/debugserver/source/MacOSX/MachVMMemory.h
parent2a513e8218e7b5a9ee865d5ab09c892dce3944fc (diff)
downloadbcm5719-llvm-8764fe7d9aa133b037528f1d118e6a6259f2f0ee.tar.gz
bcm5719-llvm-8764fe7d9aa133b037528f1d118e6a6259f2f0ee.zip
<rdar://problem/13338758>
Make it configurable what to profile. For Mac, we don't use the dirty page size yet and hence there is no need to gather that. This should be way better in not draining the battery since we are operating between 0% to 0.1% on the Mac after this change. llvm-svn: 176451
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachVMMemory.h')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachVMMemory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.h b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.h
index 2a8f3d13c84..0b782365d08 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.h
+++ b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.h
@@ -28,7 +28,7 @@ public:
nub_size_t Write(task_t task, nub_addr_t address, const void *data, nub_size_t data_count);
nub_size_t PageSize();
nub_bool_t GetMemoryRegionInfo(task_t task, nub_addr_t address, DNBRegionInfo *region_info);
- nub_bool_t GetMemoryProfile(task_t task, struct task_basic_info ti, cpu_type_t cputype, nub_process_t pid, vm_statistics_data_t &vm_stats, uint64_t &physical_memory, 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);
+ nub_bool_t GetMemoryProfile(DNBProfileDataScanType scanType, task_t task, struct task_basic_info ti, cpu_type_t cputype, nub_process_t pid, vm_statistics_data_t &vm_stats, uint64_t &physical_memory, 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);
protected:
nub_size_t MaxBytesLeftInPage(nub_addr_t addr, nub_size_t count);
OpenPOWER on IntegriCloud