Changeset bdfd3c97 in mainline for uspace/app/top/top.c


Ignore:
Timestamp:
2010-04-14T15:40:52Z (14 years ago)
Author:
Stanislav Kozina <stanislav.kozina@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95319bd
Parents:
a307beb
Message:

Press 'i' in top and you can see IPC statistics.

File:
1 edited

Legend:

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

    ra307beb rbdfd3c97  
    5656#define MINUTE 60
    5757
    58 int number = 0;
    59 int number2 = 0;
     58int operation_type;
     59
    6060static void read_data(data_t *target)
    6161{
     
    188188
    189189        /* And paint screen until death... */
     190        operation_type = OP_TASKS;
    190191        while (true) {
    191192                char c = tgetchar(UPDATE_INTERVAL);
     
    202203                                clear_screen();
    203204                                return 0;
     205                        case 'i':
     206                                PRINT_WARNING("Showing IPC statistics", c);
     207                                operation_type = OP_IPC;
     208                                break;
     209                        case 't':
     210                                PRINT_WARNING("Showing task stats", c);
     211                                operation_type = OP_TASKS;
     212                                break;
    204213                        default:
    205214                                PRINT_WARNING("Unknown command: %c", c);
Note: See TracChangeset for help on using the changeset viewer.