tools/android/appstats.py
def __PrintHeaderHelper(self,
                          snapshot,
                          show_labels,
                          show_timestamp,
                          show_mem,
                          show_net,
                          show_trailer):
    """Helper method to concat various header entries together into one header.
    This will line up with a entry built by __PrintStatsHelper if the same
    values are passed to it."""
    titles = []
    if show_labels:
      titles.append(self.__PrintPidLabelHeader(snapshot))

    if show_timestamp:
      titles.append(self.__PrintTimestampHeader())

    if show_mem:
      titles.append(self.__PrintMemoryStatsHeader())

    if show_net:
      titles.append(self.__PrintNetworkStatsHeader())

    if show_trailer:
      titles.append(self.__PrintTrailingHeader(snapshot))

    return ' '.join(titles)
Helper method to concat various header entries together into one header.
    This will line up with a entry built by __PrintStatsHelper if the same
    values are passed to it.
Helper method to concat various header entries together into one header.
This will line up with a entry built by __PrintStatsHelper if the same
values are passed to it.
Helper method to concat various header entries together into one header . This will line up with a entry built by __PrintStatsHelper if the same values are passed to it .
def __PrintHeaderHelper(self,
                          snapshot,
                          show_labels,
                          show_timestamp,
                          show_mem,
                          show_net,
                          show_trailer):
    titles = []
    if show_labels:
      titles.append(self.__PrintPidLabelHeader(snapshot))
    if show_timestamp:
      titles.append(self.__PrintTimestampHeader())
    if show_mem:
      titles.append(self.__PrintMemoryStatsHeader())
    if show_net:
      titles.append(self.__PrintNetworkStatsHeader())
    if show_trailer:
      titles.append(self.__PrintTrailingHeader(snapshot))
    return ' '.join(titles)
def __PrintHeaderHelper ( self , snapshot , show_labels , show_timestamp , show_mem , show_net , show_trailer ) : titles = [ ] if show_labels : titles . append ( self . __PrintPidLabelHeader ( snapshot ) ) if show_timestamp : titles . append ( self . __PrintTimestampHeader ( ) ) if show_mem : titles . append ( self . __PrintMemoryStatsHeader ( ) ) if show_net : titles . append ( self . __PrintNetworkStatsHeader ( ) ) if show_trailer : titles . append ( self . __PrintTrailingHeader ( snapshot ) ) return ' ' . join ( titles )
Helper method to concat various header entries together into one header.
Helper method to concat various header entries together into one header .
"""Helper method to concat various header entries together into one header.
    This will line up with a entry built by __PrintStatsHelper if the same
    values are passed to it."""
self
snapshot
show_labels
show_timestamp
show_mem
show_net
show_trailer