Changeset 8b655705 in mainline for uspace/app/top/screen.c


Ignore:
Timestamp:
2011-04-15T19:38:07Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9dd730d1
Parents:
6b9e85b (diff), b2fb47f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/top/screen.c

    r6b9e85b r8b655705  
    3737
    3838#include <stdio.h>
    39 #include <ipc/ipc.h>
    4039#include <io/console.h>
    4140#include <io/style.h>
     
    274273{
    275274        screen_style_inverted();
    276         printf("[taskid] [threads] [virtual] [%%virt] [%%user]"
    277             " [%%kernel] [name");
     275        printf("[taskid] [thrds] [resident] [%%resi] [virtual] [%%virt]"
     276            " [%%user] [%%kern] [name");
    278277        screen_newline();
    279278        screen_style_normal();
     
    295294                perc_task_t *perc = data->tasks_perc + data->tasks_map[i];
    296295               
     296                uint64_t resmem;
     297                char resmem_suffix;
     298                order_suffix(task->resmem, &resmem, &resmem_suffix);
     299               
    297300                uint64_t virtmem;
    298301                char virtmem_suffix;
    299302                order_suffix(task->virtmem, &virtmem, &virtmem_suffix);
    300303               
    301                 printf("%-8" PRIu64 " %9zu %8" PRIu64 "%c ", task->task_id,
    302                     task->threads, virtmem, virtmem_suffix);
     304                printf("%-8" PRIu64 " %7zu %9" PRIu64 "%c ",
     305                    task->task_id, task->threads, resmem, resmem_suffix);
     306                print_percent(perc->resmem, 2);
     307                printf(" %8" PRIu64 "%c ", virtmem, virtmem_suffix);
    303308                print_percent(perc->virtmem, 2);
    304309                puts(" ");
    305310                print_percent(perc->ucycles, 2);
    306                 puts("   ");
     311                puts(" ");
    307312                print_percent(perc->kcycles, 2);
    308313                puts(" ");
Note: See TracChangeset for help on using the changeset viewer.