Changeset 8eec3c8 in mainline for uspace/app/top/top.c


Ignore:
Timestamp:
2010-06-10T14:24:50Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c0f13d2
Parents:
1113c9e
Message:

merge basic exception accounting (this is the last piece missing from the original "measure" branch by Stanislav Kozina)

File:
1 edited

Legend:

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

    r1113c9e r8eec3c8  
    115115                return "Cannot get threads";
    116116       
     117        target->exceptions = stats_get_exceptions(&(target->exceptions_count));
     118        if (target->exceptions == NULL)
     119                return "Cannot get exceptions";
     120       
    117121        /* Get physical memory */
    118122        target->physmem = stats_get_physmem();
     
    231235        if (target->threads != NULL)
    232236                free(target->threads);
     237       
     238        if (target->exceptions != NULL)
     239                free(target->exceptions);
    233240       
    234241        if (target->physmem != NULL)
     
    285292                                operation_type = OP_TASKS;
    286293                                break;
     294                        case 'e':
     295                                print_warning("Showing exception statistics");
     296                                operation_type = OP_EXC;
     297                                break;
    287298                        default:
    288299                                print_warning("Unknown command: %c", c);
Note: See TracChangeset for help on using the changeset viewer.