Ignore:
Timestamp:
Jun 19, 2020, 4:59:19 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0f89d4f
Parents:
64a7146
Message:

Added Idle Sleep stats and removed extra call to unsafe_remove

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/stats.cfa

    r64a7146 r68f36f4  
    1313                stats->ready.pick.pop .attempt = 0;
    1414                stats->ready.pick.pop .success = 0;
     15                stats->ready.sleep.halts   = 0;
     16                stats->ready.sleep.cancels = 0;
     17                stats->ready.sleep.wakes   = 0;
     18                stats->ready.sleep.exits   = 0;
    1519
    1620                #if defined(HAVE_LINUX_IO_URING_H)
     
    3741                __atomic_fetch_add( &cltr->ready.pick.pop .attempt, proc->ready.pick.pop .attempt, __ATOMIC_SEQ_CST );
    3842                __atomic_fetch_add( &cltr->ready.pick.pop .success, proc->ready.pick.pop .success, __ATOMIC_SEQ_CST );
     43                __atomic_fetch_add( &cltr->ready.sleep.halts  , proc->ready.sleep.halts  , __ATOMIC_SEQ_CST );
     44                __atomic_fetch_add( &cltr->ready.sleep.cancels, proc->ready.sleep.cancels, __ATOMIC_SEQ_CST );
     45                __atomic_fetch_add( &cltr->ready.sleep.wakes  , proc->ready.sleep.wakes  , __ATOMIC_SEQ_CST );
     46                __atomic_fetch_add( &cltr->ready.sleep.exits  , proc->ready.sleep.exits  , __ATOMIC_SEQ_CST );
    3947
    4048                #if defined(HAVE_LINUX_IO_URING_H)
     
    8997                        "- push average probe len : %'18.2lf, %'18.2lf%% (%'15lu attempts)\n"
    9098                        "- pop  average probe len : %'18.2lf, %'18.2lf%% (%'15lu attempts)\n"
     99                        "- Idle Sleep -\n"
     100                        "-- halts                 : %'15lu\n"
     101                        "-- cancelled halts       : %'15lu\n"
     102                        "-- schedule wake         : %'15lu\n"
     103                        "-- wake on exit          : %'15lu\n"
    91104                        #if defined(HAVE_LINUX_IO_URING_H)
    92105                                "\n"
     
    109122                        , push_len, push_sur, stats->ready.pick.push.attempt
    110123                        , pop_len , pop_sur , stats->ready.pick.pop .attempt
     124                        , stats->ready.sleep.halts, stats->ready.sleep.cancels, stats->ready.sleep.wakes, stats->ready.sleep.exits
    111125                        #if defined(HAVE_LINUX_IO_URING_H)
    112126                                , submit_avg.cnt
Note: See TracChangeset for help on using the changeset viewer.