Handle operation on cpu sensor.

Usage

cpu keyword is needed to instanciate this sting.

var cpu = require('cpu');

Data accessors

Methods

Full Example

var cpu = require('cpu');
var recorder = require('recorder');

var dataResult = cpu.data();


recorder.save({
    'cpuarchitecture' : cpu.cpuarchitecture(),
    'cpucores' : cpu.cpucores(),
    'cpuimplementer' : cpu.cpuimplementer(),
    'cpupart' : cpu.cpupart(),
    'cpurevision' : cpu.cpurevision(),
    'cpuvariant' : cpu.cpuvariant(),
    'hardware' : cpu.hardware(),
    'processor' : cpu.processor(),
    'revision' : cpu.revision(),
    'serial' : cpu.serial(),
    'timestamp' : cpu.timestamp(),
    'json' : cpu.data()
});

cpuarchitecture

Retrieve the Value of the architecture.

cpuarchitecture();

Parameters

  • None.

Return

  • cpuarchitecture : Integer, Value of the architecture

cpucores

Retrieve the Number of CPU cores.

cpucores();

Parameters

  • None.

Return

  • cpucores : Integer, Number of CPU cores

cpuimplementer

Retrieve the Value of the CPU implementer.

cpuimplementer();

Parameters

  • None.

Return

  • cpuimplementer : String, Value of the CPU implementer

cpupart

Retrieve the Value of the part.

cpupart();

Parameters

  • None.

Return

  • cpupart : String, Value of the part

cpurevision

Retrieve the Value of the revision.

cpurevision();

Parameters

  • None.

Return

  • cpurevision : Integer, Value of the revision

cpuvariant

Retrieve the Value of the variant.

cpuvariant();

Parameters

  • None.

Return

  • cpuvariant : String, Value of the variant

hardware

Retrieve the Value of the hardware.

hardware();

Parameters

  • None.

Return

  • hardware : String, Value of the hardware

processor

Retrieve the Name of the processor.

processor();

Parameters

  • None.

Return

  • processor : String, Name of the processor

revision

Retrieve the Value of the revision.

revision();

Parameters

  • None.

Return

  • revision : Integer, Value of the revision

serial

Retrieve the Value of the serial.

serial();

Parameters

  • None.

Return

  • serial : String, Value of the serial

timestamp

Retrieve the represents the time of the operation..

timestamp();

Parameters

  • None.

Return

  • timestamp : Long, represents the time of the operation.

data

Returns every available seed.

data();

Parameters

  • None.

Returns