|
@@ -186,4 +186,18 @@ profile_exclude ( struct profiler *profiler ) {
|
186
|
186
|
profile_excluded += profile_elapsed ( profiler );
|
187
|
187
|
}
|
188
|
188
|
|
|
189
|
+/**
|
|
190
|
+ * Record profiling sample in custom units
|
|
191
|
+ *
|
|
192
|
+ * @v profiler Profiler
|
|
193
|
+ * @v sample Profiling sample
|
|
194
|
+ */
|
|
195
|
+static inline __attribute__ (( always_inline )) void
|
|
196
|
+profile_custom ( struct profiler *profiler, unsigned long sample ) {
|
|
197
|
+
|
|
198
|
+ /* If profiling is active then update stats */
|
|
199
|
+ if ( PROFILING )
|
|
200
|
+ profile_update ( profiler, sample );
|
|
201
|
+}
|
|
202
|
+
|
189
|
203
|
#endif /* _IPXE_PROFILE_H */
|