def __init__(self, include_lists=None): """ Initializes profile log for cluster node stats. Renders header according to include_lists in advance and creates base directory for node stats profile log. Args: include_lists: An instance of IncludeLists describing which fields of node stats should be written to CSV log. """ self._include_lists = include_lists self._header = (converter.get_stats_header( node_stats.NodeStatsSnapshot, self._include_lists)) helper.ensure_directory(PROFILE_LOG_DIR)
def __init__(self, include_lists=None): """ Initializes profile log for cluster node stats. Renders header according to include_lists in advance and creates base directory for node stats profile log. Args: include_lists: An instance of IncludeLists describing which fields of node stats should be written to CSV log. """ self._include_lists = include_lists self._header = ( converter.get_stats_header(node_stats.NodeStatsSnapshot, self._include_lists) ) helper.ensure_directory(PROFILE_LOG_DIR)
def __init__(self, include_lists=None): """ Initializes profile log for cluster processes stats. Renders header according to include_lists in advance and creates base directory for processes stats profile log. It also reads header of summary file (if it exists) to identify order of columns. Args: include_lists: An instance of IncludeLists describing which fields of processes stats should be written to CSV log. """ self._include_lists = include_lists self._header = (['utc_timestamp'] + converter.get_stats_header( process_stats.ProcessStats, self._include_lists)) self.write_detailed_stats = False helper.ensure_directory(PROFILE_LOG_DIR) self._summary_file_name_template = 'summary-{resource}.csv' self._summary_columns = self._get_summary_columns()
def __init__(self, include_lists=None): """ Initializes profile log for cluster processes stats. Renders header according to include_lists in advance and creates base directory for processes stats profile log. It also reads header of summary file (if it exists) to identify order of columns. Args: include_lists: An instance of IncludeLists describing which fields of processes stats should be written to CSV log. """ self._include_lists = include_lists self._header = ( ['utc_timestamp'] + converter.get_stats_header(proxy_stats.ProxyStats, self._include_lists) ) self.write_detailed_stats = False helper.ensure_directory(PROFILE_LOG_DIR) self._summary_file_name_template = 'summary-{property}.csv' self._summary_columns = self._get_summary_columns()