C++程序  |  70行  |  1.49 KB

/**
 * @file format_flags.h
 * output options
 *
 * @remark Copyright 2002 OProfile authors
 * @remark Read the file COPYING
 *
 * @author John Levon
 * @author Philippe Elie
 */

#ifndef FORMAT_FLAGS_H
#define FORMAT_FLAGS_H

/**
 * flags passed to the ctor of an output_symbol object.
 *
 * \sa format_output::formatter
 */
enum format_flags {
	ff_none = 0,
	/// a formatted memory address
	ff_vma = 1 << 0,
	/// output debug filename and line nr.
	ff_linenr_info = 1 << 1,
	/// output the image name for this line
	ff_image_name = 1 << 3,
	/// output owning application name
	ff_app_name = 1 << 4,
	/// output the (demangled) symbol name
	ff_symb_name = 1 << 5,

	/** @name subset of flags used by opreport_formatter */
	//@{
	/// number of samples
	ff_nr_samples = 1 << 6,
	/// number of samples accumulated
	ff_nr_samples_cumulated = 1 << 7,
	/// relative percentage of samples
	ff_percent = 1 << 8,
	/// relative percentage of samples accumulated
	ff_percent_cumulated = 1 << 9,
	/**
	 * Output percentage for details, not relative
	 * to symbol but relative to the total nr of samples
	 */
	ff_percent_details = 1 << 10,
	/**
	 * Output percentage for details, not relative
	 * to symbol but relative to the total nr of samples,
	 * accumulated
	 */
	ff_percent_cumulated_details = 1 << 11,
	/// output diff value
	ff_diff = 1 << 12,
	//@}
};


/**
 * General hints about formatting of the columnar output.
 */
enum column_flags {
	cf_none = 0,
	cf_64bit_vma = 1 << 0,
	cf_image_name = 1 << 1
};

#endif // FORMAT_FLAGS_H