[sysprof] Exclude idle events and set sample_period to 200000
- From: Søren Sandmann Pedersen <ssp src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [sysprof] Exclude idle events and set sample_period to 200000
- Date: Fri, 23 Oct 2009 17:44:25 +0000 (UTC)
commit 7fc23589a2e96b3a7d4b26b641256b4402f385a9
Author: Søren Sandmann Pedersen <sandmann daimi au dk>
Date: Fri Oct 23 13:42:11 2009 -0400
Exclude idle events and set sample_period to 200000
collector.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/collector.c b/collector.c
index 95b5615..aa0fe03 100644
--- a/collector.c
+++ b/collector.c
@@ -354,6 +354,7 @@ counter_new (Collector *collector,
attr.mmap = 1;
attr.comm = 1;
attr.task = 1;
+ attr.exclude_idle = 1;
if ((fd = sysprof_perf_counter_open (&attr, -1, cpu, -1, 0)) < 0)
{
@@ -361,7 +362,7 @@ counter_new (Collector *collector,
{
attr.type = PERF_TYPE_SOFTWARE;
attr.config = PERF_COUNT_SW_CPU_CLOCK;
- attr.sample_period = 10000000;
+ attr.sample_period = 2000000;
fd = sysprof_perf_counter_open (&attr, -1, cpu, -1, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]