我如何才能在终端(macosx)中仅获得整体cpu使用情况(例如msi afterburner)作为单个值,例如59%

时间:2019-05-25 13:47:10

标签: macos terminal cpu monitoring xojo

找不到任何方法来获得总体CPU使用率值,例如带有mac终端的MSI Afterburner。

已经尝试搜索答案数周了。

jQuery(document).ready(function($){
    //Hide the fields by default
    jQuery('#input_2_9').css('display','none');
    jQuery('#input_2_10').css('display','none');
    jQuery('#gform_submit_button_2').on('click', function(e){
    var self = jQuery('#input_2_8 :selected').text();
    if(self == 'Business') {
        jQuery('#input_2_9').fadeIn();
        jQuery('#input_2_10').fadeIn();
    }else{
        jQuery('#input_2_9').fadeOut();
        jQuery('#input_2_10').fadeOut();
        }
   });

});

上面的代码在此站点上找到。由于它不准确,因此无法提供准确的总体CPU使用率,并且超过了100%,这可能是由于存在多个内核。

0 个答案:

没有答案