< prev index next >

src/hotspot/os/solaris/os_perf_solaris.cpp

Print this page
rev 57095 : [mq]: use
rev 57096 : [mq]: trailing_semi


 720       FREE_C_HEAP_ARRAY(char, cpu_desc);
 721       _cpu_info->set_cpu_description(NULL);
 722     }
 723     delete _cpu_info;
 724   }
 725 }
 726 
 727 int CPUInformationInterface::cpu_information(CPUInformation& cpu_info) {
 728   if (_cpu_info == NULL) {
 729     return OS_ERR;
 730   }
 731 
 732   cpu_info = *_cpu_info; // shallow copy assignment
 733   return OS_OK;
 734 }
 735 
 736 class NetworkPerformanceInterface::NetworkPerformance : public CHeapObj<mtInternal> {
 737   friend class NetworkPerformanceInterface;
 738  private:
 739   NetworkPerformance();
 740   NetworkPerformance(const NetworkPerformance& rhs); // no impl
 741   NetworkPerformance& operator=(const NetworkPerformance& rhs); // no impl
 742   bool initialize();
 743   ~NetworkPerformance();
 744   int network_utilization(NetworkInterface** network_interfaces) const;
 745 };
 746 
 747 NetworkPerformanceInterface::NetworkPerformance::NetworkPerformance() {
 748 
 749 }
 750 
 751 bool NetworkPerformanceInterface::NetworkPerformance::initialize() {
 752   return true;
 753 }
 754 
 755 NetworkPerformanceInterface::NetworkPerformance::~NetworkPerformance() {
 756 
 757 }
 758 
 759 int NetworkPerformanceInterface::NetworkPerformance::network_utilization(NetworkInterface** network_interfaces) const
 760 {
 761   kstat_ctl_t* ctl = kstat_open();




 720       FREE_C_HEAP_ARRAY(char, cpu_desc);
 721       _cpu_info->set_cpu_description(NULL);
 722     }
 723     delete _cpu_info;
 724   }
 725 }
 726 
 727 int CPUInformationInterface::cpu_information(CPUInformation& cpu_info) {
 728   if (_cpu_info == NULL) {
 729     return OS_ERR;
 730   }
 731 
 732   cpu_info = *_cpu_info; // shallow copy assignment
 733   return OS_OK;
 734 }
 735 
 736 class NetworkPerformanceInterface::NetworkPerformance : public CHeapObj<mtInternal> {
 737   friend class NetworkPerformanceInterface;
 738  private:
 739   NetworkPerformance();
 740   NONCOPYABLE(NetworkPerformance);

 741   bool initialize();
 742   ~NetworkPerformance();
 743   int network_utilization(NetworkInterface** network_interfaces) const;
 744 };
 745 
 746 NetworkPerformanceInterface::NetworkPerformance::NetworkPerformance() {
 747 
 748 }
 749 
 750 bool NetworkPerformanceInterface::NetworkPerformance::initialize() {
 751   return true;
 752 }
 753 
 754 NetworkPerformanceInterface::NetworkPerformance::~NetworkPerformance() {
 755 
 756 }
 757 
 758 int NetworkPerformanceInterface::NetworkPerformance::network_utilization(NetworkInterface** network_interfaces) const
 759 {
 760   kstat_ctl_t* ctl = kstat_open();


< prev index next >