| 1 |
global foo%[5] |
| 2 |
|
| 3 |
probe begin |
| 4 |
{ |
| 5 |
for (i=0; i<10; i++) |
| 6 |
foo[i] <<< i; |
| 7 |
|
| 8 |
foreach (key+ in foo) |
| 9 |
{ |
| 10 |
printf("foo[%d]: count:%d sum:%d avg:%d min:%d max:%d\n", |
| 11 |
key, @count(foo[key]), @sum(foo[key]), |
| 12 |
@avg(foo[key]), @min(foo[key]), |
| 13 |
@max(foo[key])) |
| 14 |
} |
| 15 |
exit(); |
| 16 |
} |
| 17 |
|