3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. 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)
28 InitializePerformanceInfrastructure (
29 IN EFI_HANDLE ImageHandle
,
30 IN EFI_SYSTEM_TABLE
*SystemTable
,
37 TODO: Add function description
41 ImageHandle - TODO: add argument description
42 SystemTable - TODO: add argument description
43 Ticker - TODO: add argument description
47 TODO: add return values
63 TODO: Add function description
67 Handle - TODO: add argument description
68 Token - TODO: add argument description
69 Host - TODO: add argument description
70 Ticker - TODO: add argument description
74 TODO: add return values
90 TODO: Add function description
94 Handle - TODO: add argument description
95 Token - TODO: add argument description
96 Host - TODO: add argument description
97 Ticker - TODO: add argument description
101 TODO: add return values
108 IN EFI_HANDLE Handle
,
111 IN EFI_HANDLE HandleNew
,
119 TODO: Add function description
123 Handle - TODO: add argument description
124 Token - TODO: add argument description
125 Host - TODO: add argument description
126 HandleNew - TODO: add argument description
127 TokenNew - TODO: add argument description
128 HostNew - TODO: add argument description
132 TODO: add return values
137 #ifdef EFI_DXE_PERFORMANCE
138 #define PERF_ENABLE(handle, table, ticker) InitializePerformanceInfrastructure (handle, table, ticker)
139 #define PERF_START(handle, token, host, ticker) StartMeasure (handle, token, host, ticker)
140 #define PERF_END(handle, token, host, ticker) EndMeasure (handle, token, host, ticker)
141 #define PERF_UPDATE(handle, token, host, handlenew, tokennew, hostnew) \
142 UpdateMeasure (handle, \
149 #define PERF_CODE(code) code
151 #define PERF_ENABLE(handle, table, ticker)
152 #define PERF_START(handle, token, host, ticker)
153 #define PERF_END(handle, token, host, ticker)
154 #define PERF_UPDATE(handle, token, host, handlenew, tokennew, hostnew)
155 #define PERF_CODE(code)