Changeset 7a3ccbc in mainline for uspace/app/top/screen.c


Ignore:
Timestamp:
2010-04-07T10:41:42Z (15 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a325832
Parents:
36b5b0f
Message:

Echo task memory in kb instead of pages count

File:
1 edited

Legend:

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

    r36b5b0f r7a3ccbc  
    155155                        return;
    156156                task_info_t *taskinfo = &data->taskinfos[i];
    157                 printf("%8llu %8u %8u ", taskinfo->taskid,
    158                         taskinfo->thread_count, taskinfo->pages);
     157                uint64_t mem;
     158                char suffix;
     159                order(taskinfo->virt_mem, &mem, &suffix);
     160                printf("%8llu %8u %8llu%c ", taskinfo->taskid,
     161                        taskinfo->thread_count, mem, suffix);
    159162                task_perc_t *taskperc = &data->task_perc[i];
    160163                puts("   ");
    161                 print_float(taskperc->pages, 2);
     164                print_float(taskperc->mem, 2);
    162165                puts("%   ");
    163166                print_float(taskperc->ucycles, 2);
     
    173176        fflush(stdout);
    174177        console_set_rgb_color(fphone(stdout), WHITE, BLACK);
    175         printf("      ID  Threads    Pages    %%Pages %%uCycles %%kCycles Name");
     178        printf("      ID  Threads      Mem      %%Mem %%uCycles %%kCycles Name");
    176179        int i;
    177180        for (i = 60; i < colls; ++i)
Note: See TracChangeset for help on using the changeset viewer.