1/* 2 * Copyright (c) 2011 Apple Inc. All rights reserved. 3 * 4 * @APPLE_APACHE_LICENSE_HEADER_START@ 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 * @APPLE_APACHE_LICENSE_HEADER_END@ 19 */ 20/* 21 auto_trace.h 22 DTrace support. 23 Copyright (c) 2006-2011 Apple Inc. All rights reserved. 24 */ 25 26#ifndef AUTO_TRACE_H 27#define AUTO_TRACE_H 28 29#include <sys/cdefs.h> 30#include <stddef.h> 31#include "auto_zone.h" 32 33__BEGIN_DECLS 34 35typedef enum { 36 AUTO_TRACE_SCANNING_PHASE = 0, 37 AUTO_TRACE_WEAK_REFERENCE_PHASE, 38 AUTO_TRACE_FINALIZING_PHASE, 39 AUTO_TRACE_SCAVENGING_PHASE 40} auto_collection_phase_t; 41 42typedef enum { 43 AUTO_TRACE_FULL = 0, 44 AUTO_TRACE_GENERATIONAL = 1, 45 AUTO_TRACE_LOCAL = 2 46} auto_collection_type_t; 47 48__END_DECLS 49 50#endif