3 Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 EfiPerf.h provides performance primitive for the DXE and Shell phase
25 #include EFI_PROTOCOL_DEFINITION (Performance)
29 InitializePerformanceInfrastructure (
30 IN EFI_HANDLE ImageHandle
,
31 IN EFI_SYSTEM_TABLE
*SystemTable
,
38 TODO: Add function description
42 ImageHandle - TODO: add argument description
43 SystemTable - TODO: add argument description
44 Ticker - TODO: add argument description
48 TODO: add return values
65 TODO: Add function description
69 Handle - TODO: add argument description
70 Token - TODO: add argument description
71 Host - TODO: add argument description
72 Ticker - TODO: add argument description
76 TODO: add return values
93 TODO: Add function description
97 Handle - TODO: add argument description
98 Token - TODO: add argument description
99 Host - TODO: add argument description
100 Ticker - TODO: add argument description
104 TODO: add return values
112 IN EFI_HANDLE Handle
,
115 IN EFI_HANDLE HandleNew
,
123 TODO: Add function description
127 Handle - TODO: add argument description
128 Token - TODO: add argument description
129 Host - TODO: add argument description
130 HandleNew - TODO: add argument description
131 TokenNew - TODO: add argument description
132 HostNew - TODO: add argument description
136 TODO: add return values
141 #ifdef EFI_DXE_PERFORMANCE
142 #define PERF_ENABLE(handle, table, ticker) InitializePerformanceInfrastructure (handle, table, ticker)
143 #define PERF_START(handle, token, host, ticker) StartMeasure (handle, token, host, ticker)
144 #define PERF_END(handle, token, host, ticker) EndMeasure (handle, token, host, ticker)
145 #define PERF_UPDATE(handle, token, host, handlenew, tokennew, hostnew) \
146 UpdateMeasure (handle, \
153 #define PERF_CODE(code) code
155 #define PERF_ENABLE(handle, table, ticker)
156 #define PERF_START(handle, token, host, ticker)
157 #define PERF_END(handle, token, host, ticker)
158 #define PERF_UPDATE(handle, token, host, handlenew, tokennew, hostnew)
159 #define PERF_CODE(code)