]>
git.saurik.com Git - apple/xnu.git/blob - bsd/hfs/hfscommon/headers/HFSInstrumentation.h
5cdc2de2040f22b313326836e72ee57d99a40fd7
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 File: HFSInstrumentation.h
25 Contains: xxx put contents here xxx
27 Version: xxx put version here xxx
29 Copyright: © 1997 by Apple Computer, Inc., all rights reserved.
33 DRI: xxx put dri here xxx
35 Other Contact: xxx put other contact here xxx
37 Technology: xxx put technology here xxx
44 Change History (most recent first):
46 <CS6> 10/1/97 djb Add kGetCatalogIterator
47 <CS5> 9/4/97 djb Add kTraceRelString, kHeuristicHint.
48 <CS4> 7/24/97 djb Add summary traces for GetNode, RelNode, and BasicIO.
49 <CS3> 7/21/97 djb Redefine LogStartTime/LogEndTime macros.
50 <CS2> 7/16/97 DSH FilesInternal.i renamed FileMgrInternal.i to avoid name
52 <CS1> 5/9/97 djb first checked in
55 #include "../../hfs_macos_defs.h"
56 #include "FileMgrInternal.h"
60 // Instrumentation summary trace indicies
64 kTraceUnicodeToPString
,
65 kTracePStringToUnicode
,
76 kTraceInsertBTreeRecord
,
77 kTraceDeleteBTreeRecord
,
78 kTraceReplaceBTreeRecord
,
92 kSummaryTraceRefs
// number of summary trace references
96 void STLogStartTime(UInt32 selector
);
97 void STLogEndTime(UInt32 selector
, OSErr error
);
102 LogStartTime(selector)
105 If summary traces are enabled then LogStartTime will record the starting time for
106 the routine associated with the selector. Otherwise LogStartTime does nothing.
112 #define LogStartTime(selector) STLogStartTime( (selector) )
116 #define LogStartTime(selector) ((void) 0)
124 LogEndTime(selector, error)
127 If summary traces are enabled then InsLogEndTime will record the ending time for
128 the routine associated with the selector. Otherwise LogEndTime does nothing.
134 #define LogEndTime(selector,error) STLogEndTime( (selector), (error) )
138 #define LogEndTime(selector,error) ((void) 0)