equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // |
|
20 // LDD for thread time profiling |
|
21 // |
|
22 |
|
23 #include <piprofiler/ProfilerConfig.h> |
|
24 #include <piprofiler/ProfilerVersion.h> |
|
25 |
|
26 |
|
27 #include <kern_priv.h> |
|
28 #include <sproperty.h> |
|
29 |
|
30 #include <piprofiler/PluginSampler.h> |
|
31 |
|
32 |
|
33 /* |
|
34 * |
|
35 * |
|
36 * Class DPluginDriver implementation |
|
37 * |
|
38 * |
|
39 */ |
|
40 inline DPluginDriver::DPluginDriver() //: iSubsRequest(&HandleSubsComplete, this) |
|
41 { |
|
42 //iClientProcess = &Kern::CurrentProcess(); |
|
43 } |
|
44 inline DPluginDriver::~DPluginDriver() |
|
45 { |
|
46 |
|
47 } |
|
48 |
|
49 /* |
|
50 * Methods for controlling stream read option |
|
51 */ |
|
52 |
|
53 inline TInt DPluginDriver::ProcessStreamReadCancel() |
|
54 { |
|
55 return KErrNone; |
|
56 } |
|
57 |
|
58 /* |
|
59 * Mark traces active or inactive, this can be done |
|
60 * only if sampling is not running |
|
61 */ |
|
62 |
|
63 inline TInt DPluginDriver::StopSampling() |
|
64 { |
|
65 if(this->iState == ERunning) |
|
66 { |
|
67 this->iState = EStopping; |
|
68 return KErrNone; |
|
69 } |
|
70 else |
|
71 { |
|
72 return KErrGeneral; |
|
73 } |
|
74 } |
|
75 |
|
76 |
|
77 |
|