perfmonger 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +6 -0
- data/.tachikoma.yml +1 -0
- data/.travis.yml +18 -6
- data/Gemfile +1 -3
- data/Guardfile +26 -0
- data/NEWS +21 -0
- data/README.md +8 -9
- data/Rakefile +33 -1
- data/core/Makefile +23 -0
- data/core/build.sh +48 -0
- data/core/perfmonger-player.go +165 -0
- data/core/perfmonger-recorder.go +296 -0
- data/core/perfmonger-summarizer.go +207 -0
- data/core/subsystem/Makefile +3 -0
- data/core/subsystem/perfmonger.go +60 -0
- data/core/subsystem/perfmonger_darwin.go +22 -0
- data/core/subsystem/perfmonger_linux.go +292 -0
- data/core/subsystem/perfmonger_linux_test.go +73 -0
- data/core/subsystem/stat.go +214 -0
- data/core/subsystem/stat_test.go +281 -0
- data/core/subsystem/usage.go +410 -0
- data/core/subsystem/usage_test.go +496 -0
- data/lib/exec/operationBinding.rb.svn-base +59 -0
- data/lib/exec/perfmonger-player_darwin_amd64 +0 -0
- data/lib/exec/perfmonger-player_linux_386 +0 -0
- data/lib/exec/perfmonger-player_linux_amd64 +0 -0
- data/lib/exec/perfmonger-recorder_darwin_amd64 +0 -0
- data/lib/exec/perfmonger-recorder_linux_386 +0 -0
- data/lib/exec/perfmonger-recorder_linux_amd64 +0 -0
- data/lib/exec/perfmonger-summarizer_darwin_amd64 +0 -0
- data/lib/exec/perfmonger-summarizer_linux_386 +0 -0
- data/lib/exec/perfmonger-summarizer_linux_amd64 +0 -0
- data/lib/exec/perfmonger-summary_linux_386 +0 -0
- data/lib/exec/perfmonger-summary_linux_amd64 +0 -0
- data/lib/perfmonger/cli.rb +8 -3
- data/lib/perfmonger/command/core.rb +62 -0
- data/lib/perfmonger/command/live.rb +39 -0
- data/lib/perfmonger/command/play.rb +56 -0
- data/lib/perfmonger/command/plot.rb +30 -22
- data/lib/perfmonger/command/record.rb +3 -2
- data/lib/perfmonger/command/record_option.rb +40 -59
- data/lib/perfmonger/command/server.rb +7 -2
- data/lib/perfmonger/command/stat.rb +2 -2
- data/lib/perfmonger/command/stat_option.rb +1 -1
- data/lib/perfmonger/command/summary.rb +11 -326
- data/lib/perfmonger/version.rb +1 -3
- data/lib/perfmonger.rb +3 -0
- data/misc/_perfmonger +128 -0
- data/misc/perfmonger-completion.bash +49 -0
- data/perfmonger.gemspec +6 -5
- data/spec/data/busy100.pgr +0 -0
- data/spec/fingerprint_spec.rb +35 -0
- data/spec/live_spec.rb +25 -0
- data/spec/perfmonger_spec.rb +37 -0
- data/spec/play_spec.rb +21 -0
- data/spec/plot_spec.rb +42 -0
- data/spec/record_spec.rb +15 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/stat_spec.rb +15 -0
- data/spec/summary_spec.rb +51 -0
- data/spec/support/aruba.rb +11 -0
- data/wercker.yml +59 -0
- metadata +117 -45
- data/ext/perfmonger/extconf.rb +0 -19
- data/ext/perfmonger/perfmonger.h +0 -58
- data/ext/perfmonger/perfmonger_record.c +0 -754
- data/ext/perfmonger/sysstat/common.c +0 -627
- data/ext/perfmonger/sysstat/common.h +0 -207
- data/ext/perfmonger/sysstat/ioconf.c +0 -515
- data/ext/perfmonger/sysstat/ioconf.h +0 -84
- data/ext/perfmonger/sysstat/iostat.c +0 -1100
- data/ext/perfmonger/sysstat/iostat.h +0 -121
- data/ext/perfmonger/sysstat/libsysstat.h +0 -19
- data/ext/perfmonger/sysstat/mpstat.c +0 -953
- data/ext/perfmonger/sysstat/mpstat.h +0 -79
- data/ext/perfmonger/sysstat/rd_stats.c +0 -2388
- data/ext/perfmonger/sysstat/rd_stats.h +0 -651
- data/ext/perfmonger/sysstat/sysconfig.h +0 -13
- data/test/run-test.sh +0 -39
- data/test/spec/bin_spec.rb +0 -37
- data/test/spec/data/2devices.expected +0 -42
- data/test/spec/data/2devices.output +0 -42
- data/test/spec/spec_helper.rb +0 -20
- data/test/spec/summary_spec.rb +0 -193
- data/test/test-perfmonger.c +0 -145
- data/test/test.h +0 -9
@@ -1,79 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* mpstat: per-processor statistics
|
3
|
-
* (C) 2000-2010 by Sebastien Godard (sysstat <at> orange.fr)
|
4
|
-
*/
|
5
|
-
|
6
|
-
#ifndef _MPSTAT_H
|
7
|
-
#define _MPSTAT_H
|
8
|
-
|
9
|
-
/*
|
10
|
-
***************************************************************************
|
11
|
-
* mpstat's specific system files.
|
12
|
-
***************************************************************************
|
13
|
-
*/
|
14
|
-
|
15
|
-
#define SOFTIRQS "/proc/softirqs"
|
16
|
-
|
17
|
-
/*
|
18
|
-
***************************************************************************
|
19
|
-
* Activities definitions.
|
20
|
-
***************************************************************************
|
21
|
-
*/
|
22
|
-
|
23
|
-
#define M_D_CPU 0x0001
|
24
|
-
#define M_D_IRQ_SUM 0x0002
|
25
|
-
#define M_D_IRQ_CPU 0x0004
|
26
|
-
#define M_D_SOFTIRQS 0x0008
|
27
|
-
|
28
|
-
#ifndef DISPLAY_CPU
|
29
|
-
#define DISPLAY_CPU(m) (((m) & M_D_CPU) == M_D_CPU)
|
30
|
-
#endif
|
31
|
-
#define DISPLAY_IRQ_SUM(m) (((m) & M_D_IRQ_SUM) == M_D_IRQ_SUM)
|
32
|
-
#define DISPLAY_IRQ_CPU(m) (((m) & M_D_IRQ_CPU) == M_D_IRQ_CPU)
|
33
|
-
#define DISPLAY_SOFTIRQS(m) (((m) & M_D_SOFTIRQS) == M_D_SOFTIRQS)
|
34
|
-
|
35
|
-
/*
|
36
|
-
***************************************************************************
|
37
|
-
* Keywords and constants.
|
38
|
-
***************************************************************************
|
39
|
-
*/
|
40
|
-
|
41
|
-
/* Indicate that option -P has been used */
|
42
|
-
#define F_P_OPTION 0x01
|
43
|
-
|
44
|
-
#define USE_P_OPTION(m) (((m) & F_P_OPTION) == F_P_OPTION)
|
45
|
-
|
46
|
-
#define K_SUM "SUM"
|
47
|
-
#define K_CPU "CPU"
|
48
|
-
#define K_SCPU "SCPU"
|
49
|
-
|
50
|
-
#define NR_IRQCPU_PREALLOC 3
|
51
|
-
|
52
|
-
#define MAX_IRQ_LEN 16
|
53
|
-
|
54
|
-
/*
|
55
|
-
***************************************************************************
|
56
|
-
* Structures used to store statistics.
|
57
|
-
***************************************************************************
|
58
|
-
*/
|
59
|
-
|
60
|
-
/*
|
61
|
-
* stats_irqcpu->irq: IRQ#-A
|
62
|
-
* stats_irqcpu->interrupt: number of IRQ#-A for proc 0
|
63
|
-
* stats_irqcpu->irq: IRQ#-B
|
64
|
-
* stats_irqcpu->interrupt: number of IRQ#-B for proc 0
|
65
|
-
* ...
|
66
|
-
* stats_irqcpu->irq: (undef'd)
|
67
|
-
* stats_irqcpu->interrupt: number of IRQ#-A for proc 1
|
68
|
-
* stats_irqcpu->irq: (undef'd)
|
69
|
-
* stats_irqcpu->interrupt: number of IRQ#-B for proc 1
|
70
|
-
* ...
|
71
|
-
*/
|
72
|
-
struct stats_irqcpu {
|
73
|
-
unsigned int interrupt __attribute__ ((aligned (4)));
|
74
|
-
char irq_name[MAX_IRQ_LEN];
|
75
|
-
};
|
76
|
-
|
77
|
-
#define STATS_IRQCPU_SIZE (sizeof(struct stats_irqcpu))
|
78
|
-
|
79
|
-
#endif
|