Skip to content
Snippets Groups Projects
Forked from ffbs / ffbs-gluon
Source project has a limited visibility.
  • lemoer's avatar
    6ac7e97f
    gluon-respondd: add information from /proc/stat to "statistics" · 6ac7e97f
    lemoer authored
    This commit adds information about:
    - how cpu time is spent since boot in jiffies (1/100*sek) (cpu)
        - the value is summed for all cores, so in 10 seconds the
          summed values will increase by 4000, if the cpu has
          4 cores
    - context switches since boot (ctxt)
    - interrupt counters since boot (intr, softirq)
    - forks since boot (processes)
    
        { "stat": {
           "cpu": {
             "user": 219403,
             "nice": 1714,
             "system": 75159,
             "idle": 2727739,
             "iowait": 2943,
             "irq": 0,
             "softirq": 571
           },
           "intr": 8426340,
           "ctxt": 50992590,
           "processes": 10549,
           "softirq": 5161884
        } }
    6ac7e97f
    History
    gluon-respondd: add information from /proc/stat to "statistics"
    lemoer authored
    This commit adds information about:
    - how cpu time is spent since boot in jiffies (1/100*sek) (cpu)
        - the value is summed for all cores, so in 10 seconds the
          summed values will increase by 4000, if the cpu has
          4 cores
    - context switches since boot (ctxt)
    - interrupt counters since boot (intr, softirq)
    - forks since boot (processes)
    
        { "stat": {
           "cpu": {
             "user": 219403,
             "nice": 1714,
             "system": 75159,
             "idle": 2727739,
             "iowait": 2943,
             "irq": 0,
             "softirq": 571
           },
           "intr": 8426340,
           "ctxt": 50992590,
           "processes": 10549,
           "softirq": 5161884
        } }