garnet/bin/system_monitor/harvester/task_tree.cc
void TaskTree::Clear() {
  // It may be worth checking if this can be  optimized by sending the handles
  // in batches.

  for (auto& job : jobs_) {
    zx_handle_close(job.handle);
  }
  jobs_.clear();

  for (auto& process : processes_) {
    zx_handle_close(process.handle);
  }
  processes_.clear();

  for (auto& thread : threads_) {
    zx_handle_close(thread.handle);
  }
  threads_.clear();
}
// Clear all jobs/processes/threads information. Note that this is called by
// Gather() and the destructor (i.e. no need for a separate call to Clear()
// for those cases).
Clear all jobs/processes/threads information. Note that this is called by
Gather() and the destructor
for those cases).
Clear all jobs / processes / threads information . Note that this is called by Gather () and the destructor for those cases ) .
void TaskTree::Clear() {
  for (auto& job : jobs_) {
    zx_handle_close(job.handle);
  }
  jobs_.clear();
  for (auto& process : processes_) {
    zx_handle_close(process.handle);
  }
  processes_.clear();
  for (auto& thread : threads_) {
    zx_handle_close(thread.handle);
  }
  threads_.clear();
}
void TaskTree :: Clear ( ) { for ( auto & job : jobs_ ) { zx_handle_close ( job . handle ) ; } jobs_ . clear ( ) ; for ( auto & process : processes_ ) { zx_handle_close ( process . handle ) ; } processes_ . clear ( ) ; for ( auto & thread : threads_ ) { zx_handle_close ( thread . handle ) ; } threads_ . clear ( ) ; }
Clear all jobs/processes/threads information.
Clear all jobs / processes / threads information .
// It may be worth checking if this can be  optimized by sending the handles // in batches.