INSTALL 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. Copyright 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
  2. Foundation, Inc.
  3. This file is free documentation; the Free Software Foundation gives
  4. unlimited permission to copy, distribute and modify it.
  5. Perftools-Specific Install Notes
  6. ================================
  7. *** Building from source repository
  8. As of 2.1 gperftools does not have configure and other autotools
  9. products checked into it's source repository. This is common practice
  10. for projects using autotools.
  11. NOTE: Source releases (.tar.gz that you download from
  12. code.google.com/p/gperftools) still have all required files just as
  13. before. Nothing has changed w.r.t. building from .tar.gz releases.
  14. But, in order to build gperftools checked out from subversion
  15. repository you need to have autoconf, automake and libtool
  16. installed. And before running ./configure you have to generate it (and
  17. a bunch of other files) by running ./autogen.sh script. That script
  18. will take care of calling correct autotools programs in correct order.
  19. If you're maintainer then it's business as usual too. Just run make
  20. dist (or, preferably, make distcheck) and it'll produce .tar.gz or
  21. .tar.bz2 with all autotools magic already included. So that users can
  22. build our software without having autotools.
  23. *** NOTE FOR 64-BIT LINUX SYSTEMS
  24. The glibc built-in stack-unwinder on 64-bit systems has some problems
  25. with the perftools libraries. (In particular, the cpu/heap profiler
  26. may be in the middle of malloc, holding some malloc-related locks when
  27. they invoke the stack unwinder. The built-in stack unwinder may call
  28. malloc recursively, which may require the thread to acquire a lock it
  29. already holds: deadlock.)
  30. For that reason, if you use a 64-bit system, we strongly recommend you
  31. install libunwind before trying to configure or install gperftools.
  32. libunwind can be found at
  33. http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99-beta.tar.gz
  34. Even if you already have libunwind installed, you should check the
  35. version. Versions older than this will not work properly; too-new
  36. versions introduce new code that does not work well with perftools
  37. (because libunwind can call malloc, which will lead to deadlock).
  38. There have been reports of crashes with libunwind 0.99 (see
  39. http://code.google.com/p/gperftools/issues/detail?id=374).
  40. Alternately, you can use a more recent libunwind (e.g. 1.0.1) at the
  41. cost of adding a bit of boilerplate to your code. For details, see
  42. http://groups.google.com/group/google-perftools/msg/2686d9f24ac4365f
  43. CAUTION: if you install libunwind from the url above, be aware that
  44. you may have trouble if you try to statically link your binary with
  45. perftools: that is, if you link with 'gcc -static -lgcc_eh ...'.
  46. This is because both libunwind and libgcc implement the same C++
  47. exception handling APIs, but they implement them differently on
  48. some platforms. This is not likely to be a problem on ia64, but
  49. may be on x86-64.
  50. Also, if you link binaries statically, make sure that you add
  51. -Wl,--eh-frame-hdr to your linker options. This is required so that
  52. libunwind can find the information generated by the compiler
  53. required for stack unwinding.
  54. Using -static is rare, though, so unless you know this will affect
  55. you it probably won't.
  56. If you cannot or do not wish to install libunwind, you can still try
  57. to use the built-in stack unwinder. The built-in stack unwinder
  58. requires that your application, the tcmalloc library, and system
  59. libraries like libc, all be compiled with a frame pointer. This is
  60. *not* the default for x86-64.
  61. If you are on x86-64 system, know that you have a set of system
  62. libraries with frame-pointers enabled, and compile all your
  63. applications with -fno-omit-frame-pointer, then you can enable the
  64. built-in perftools stack unwinder by passing the
  65. --enable-frame-pointers flag to configure.
  66. Even with the use of libunwind, there are still known problems with
  67. stack unwinding on 64-bit systems, particularly x86-64. See the
  68. "64-BIT ISSUES" section in README.
  69. If you encounter problems, try compiling perftools with './configure
  70. --enable-frame-pointers'. Note you will need to compile your
  71. application with frame pointers (via 'gcc -fno-omit-frame-pointer
  72. ...') in this case.
  73. *** TCMALLOC LARGE PAGES: TRADING TIME FOR SPACE
  74. You can set a compiler directive that makes tcmalloc faster, at the
  75. cost of using more space (due to internal fragmentation).
  76. Internally, tcmalloc divides its memory into "pages." The default
  77. page size is chosen to minimize memory use by reducing fragmentation.
  78. The cost is that keeping track of these pages can cost tcmalloc time.
  79. We've added a new flag to tcmalloc that enables a larger page size.
  80. In general, this will increase the memory needs of applications using
  81. tcmalloc. However, in many cases it will speed up the applications
  82. as well, particularly if they allocate and free a lot of memory. We've
  83. seen average speedups of 3-5% on Google applications.
  84. To build libtcmalloc with large pages you need to use the
  85. --with-tcmalloc-pagesize=ARG configure flag, e.g.:
  86. ./configure <other flags> --with-tcmalloc-pagesize=32
  87. The ARG argument can be 4, 8, 16, 32, 64, 128 or 256 which sets the
  88. internal page size to 4K, 8K, 16K, 32K, 64K, 128K and 256K respectively.
  89. The default is 8K.
  90. *** SMALL TCMALLOC CACHES: TRADING SPACE FOR TIME
  91. You can set a compiler directive that makes tcmalloc use less memory
  92. for overhead, at the cost of some time.
  93. Internally, tcmalloc keeps information about some of its internal data
  94. structures in a cache. This speeds memory operations that need to
  95. access this internal data. We've added a new, experimental flag to
  96. tcmalloc that reduces the size of this cache, decresaing the memory
  97. needs of applications using tcmalloc.
  98. This feature is still very experimental; it's not even a configure
  99. flag yet. To build libtcmalloc with smaller internal caches, run
  100. ./configure <normal flags> CXXFLAGS=-DTCMALLOC_SMALL_BUT_SLOW
  101. (or add -DTCMALLOC_SMALL_BUT_SLOW to your existing CXXFLAGS argument).
  102. *** NOTE FOR ___tls_get_addr ERROR
  103. When compiling perftools on some old systems, like RedHat 8, you may
  104. get an error like this:
  105. ___tls_get_addr: symbol not found
  106. This means that you have a system where some parts are updated enough
  107. to support Thread Local Storage, but others are not. The perftools
  108. configure script can't always detect this kind of case, leading to
  109. that error. To fix it, just comment out the line
  110. #define HAVE_TLS 1
  111. in your config.h file before building.
  112. *** TCMALLOC AND DLOPEN
  113. To improve performance, we use the "initial exec" model of Thread
  114. Local Storage in tcmalloc. The price for this is the library will not
  115. work correctly if it is loaded via dlopen(). This should not be a
  116. problem, since loading a malloc-replacement library via dlopen is
  117. asking for trouble in any case: some data will be allocated with one
  118. malloc, some with another. If, for some reason, you *do* need to use
  119. dlopen on tcmalloc, the easiest way is to use a version of tcmalloc
  120. with TLS turned off; see the ___tls_get_addr note above.
  121. *** COMPILING ON NON-LINUX SYSTEMS
  122. Perftools has been tested on the following systems:
  123. FreeBSD 6.0 (x86)
  124. FreeBSD 8.1 (x86_64)
  125. Linux CentOS 5.5 (x86_64)
  126. Linux Debian 4.0 (PPC)
  127. Linux Debian 5.0 (x86)
  128. Linux Fedora Core 3 (x86)
  129. Linux Fedora Core 4 (x86)
  130. Linux Fedora Core 5 (x86)
  131. Linux Fedora Core 6 (x86)
  132. Linux Fedora Core 13 (x86_64)
  133. Linux Fedora Core 14 (x86_64)
  134. Linux RedHat 9 (x86)
  135. Linux Slackware 13 (x86_64)
  136. Linux Ubuntu 6.06.1 (x86)
  137. Linux Ubuntu 6.06.1 (x86_64)
  138. Linux Ubuntu 10.04 (x86)
  139. Linux Ubuntu 10.10 (x86_64)
  140. Mac OS X 10.3.9 (Panther) (PowerPC)
  141. Mac OS X 10.4.8 (Tiger) (PowerPC)
  142. Mac OS X 10.4.8 (Tiger) (x86)
  143. Mac OS X 10.5 (Leopard) (x86)
  144. Mac OS X 10.6 (Snow Leopard) (x86)
  145. Solaris 10 (x86_64)
  146. Windows XP, Visual Studio 2003 (VC++ 7.1) (x86)
  147. Windows XP, Visual Studio 2005 (VC++ 8) (x86)
  148. Windows XP, Visual Studio 2005 (VC++ 9) (x86)
  149. Windows XP, Visual Studio 2005 (VC++ 10) (x86)
  150. Windows XP, MinGW 5.1.3 (x86)
  151. Windows XP, Cygwin 5.1 (x86)
  152. It works in its full generality on the Linux systems
  153. tested (though see 64-bit notes above). Portions of perftools work on
  154. the other systems. The basic memory-allocation library,
  155. tcmalloc_minimal, works on all systems. The cpu-profiler also works
  156. fairly widely. However, the heap-profiler and heap-checker are not
  157. yet as widely supported. In general, the 'configure' script will
  158. detect what OS you are building for, and only build the components
  159. that work on that OS.
  160. Note that tcmalloc_minimal is perfectly usable as a malloc/new
  161. replacement, so it is possible to use tcmalloc on all the systems
  162. above, by linking in libtcmalloc_minimal.
  163. ** FreeBSD:
  164. The following binaries build and run successfully (creating
  165. libtcmalloc_minimal.so and libprofile.so in the process):
  166. % ./configure
  167. % make tcmalloc_minimal_unittest tcmalloc_minimal_large_unittest \
  168. addressmap_unittest atomicops_unittest frag_unittest \
  169. low_level_alloc_unittest markidle_unittest memalign_unittest \
  170. packed_cache_test stacktrace_unittest system_alloc_unittest \
  171. thread_dealloc_unittest profiler_unittest.sh
  172. % ./tcmalloc_minimal_unittest # to run this test
  173. % [etc] # to run other tests
  174. Three caveats: first, frag_unittest tries to allocate 400M of memory,
  175. and if you have less virtual memory on your system, the test may
  176. fail with a bad_alloc exception.
  177. Second, profiler_unittest.sh sometimes fails in the "fork" test.
  178. This is because stray SIGPROF signals from the parent process are
  179. making their way into the child process. (This may be a kernel
  180. bug that only exists in older kernels.) The profiling code itself
  181. is working fine. This only affects programs that call fork(); for
  182. most programs, the cpu profiler is entirely safe to use.
  183. Third, perftools depends on /proc to get shared library
  184. information. If you are running a FreeBSD system without proc,
  185. perftools will not be able to map addresses to functions. Some
  186. unittests will fail as a result.
  187. Finally, the new test introduced in perftools-1.2,
  188. profile_handler_unittest, fails on FreeBSD. It has something to do
  189. with how the itimer works. The cpu profiler test passes, so I
  190. believe the functionality is correct and the issue is with the test
  191. somehow. If anybody is an expert on itimers and SIGPROF in
  192. FreeBSD, and would like to debug this, I'd be glad to hear the
  193. results!
  194. libtcmalloc.so successfully builds, and the "advanced" tcmalloc
  195. functionality all works except for the leak-checker, which has
  196. Linux-specific code:
  197. % make heap-profiler_unittest.sh maybe_threads_unittest.sh \
  198. tcmalloc_unittest tcmalloc_both_unittest \
  199. tcmalloc_large_unittest # THESE WORK
  200. % make -k heap-checker_unittest.sh \
  201. heap-checker-death_unittest.sh # THESE DO NOT
  202. Note that unless you specify --enable-heap-checker explicitly,
  203. 'make' will not build the heap-checker unittests on a FreeBSD
  204. system.
  205. I have not tested other *BSD systems, but they are probably similar.
  206. ** Mac OS X:
  207. I've tested OS X 10.5 [Leopard], OS X 10.4 [Tiger] and OS X 10.3
  208. [Panther] on both intel (x86) and PowerPC systems. For Panther
  209. systems, perftools does not work at all: it depends on a header
  210. file, OSAtomic.h, which is new in 10.4. (It's possible to get the
  211. code working for Panther/i386 without too much work; if you're
  212. interested in exploring this, drop an e-mail.)
  213. For the other seven systems, the binaries and libraries that
  214. successfully build are exactly the same as for FreeBSD. See that
  215. section for a list of binaries and instructions on building them.
  216. In addition, it appears OS X regularly fails profiler_unittest.sh
  217. in the "thread" test (in addition to occassionally failing in the
  218. "fork" test). It looks like OS X often delivers the profiling
  219. signal to the main thread, even when it's sleeping, rather than
  220. spawned threads that are doing actual work. If anyone knows
  221. details of how OS X handles SIGPROF (via setitimer()) events with
  222. threads, and has insight into this problem, please send mail to
  223. [email protected].
  224. ** Solaris 10 x86:
  225. I've only tested using the GNU C++ compiler, not the Sun C++
  226. compiler. Using g++ requires setting the PATH appropriately when
  227. configuring.
  228. % PATH=${PATH}:/usr/sfw/bin/:/usr/ccs/bin ./configure
  229. % PATH=${PATH}:/usr/sfw/bin/:/usr/ccs/bin make [...]
  230. Again, the binaries and libraries that successfully build are
  231. exactly the same as for FreeBSD. (However, while libprofiler.so can
  232. be used to generate profiles, pprof is not very successful at
  233. reading them -- necessary helper programs like nm don't seem
  234. to be installed by default on Solaris, or perhaps are only
  235. installed as part of the Sun C++ compiler package.) See that
  236. section for a list of binaries, and instructions on building them.
  237. ** Windows (MSVC, Cygwin, and MinGW):
  238. Work on Windows is rather preliminary: only tcmalloc_minimal is
  239. supported.
  240. We haven't found a good way to get stack traces in release mode on
  241. windows (that is, when FPO is enabled), so the heap profiling may
  242. not be reliable in that case. Also, heap-checking and CPU profiling
  243. do not yet work at all. But as in other ports, the basic tcmalloc
  244. library functionality, overriding malloc and new and such (and even
  245. windows-specific functions like _aligned_malloc!), is working fine,
  246. at least with VC++ 7.1 (Visual Studio 2003) through VC++ 10.0,
  247. in both debug and release modes. See README.windows for
  248. instructions on how to install on Windows using Visual Studio.
  249. Cygwin can compile some but not all of perftools. Furthermore,
  250. there is a problem with exception-unwinding in cygwin (it can call
  251. malloc, which can call the exception-unwinding-setup code, which
  252. can lead to an infinite loop). I've comitted a workaround to the
  253. exception unwinding problem, but it only works in debug mode and
  254. when statically linking in tcmalloc. I hope to have a more proper
  255. fix in a later release. To configure under cygwin, run
  256. ./configure --disable-shared CXXFLAGS=-g && make
  257. Most of cygwin will compile (cygwin doesn't allow weak symbols, so
  258. the heap-checker and a few other pieces of functionality will not
  259. compile). 'make' will compile those libraries and tests that can
  260. be compiled. You can run 'make check' to make sure the basic
  261. functionality is working. I've heard reports that some versions of
  262. cygwin fail calls to pthread_join() with EINVAL, causing several
  263. tests to fail. If you have any insight into this, please mail
  264. [email protected].
  265. This Windows functionality is also available using MinGW and Msys,
  266. In this case, you can use the regular './configure && make'
  267. process. 'make install' should also work. The Makefile will limit
  268. itself to those libraries and binaries that work on windows.
  269. Basic Installation
  270. ==================
  271. These are generic installation instructions.
  272. The `configure' shell script attempts to guess correct values for
  273. various system-dependent variables used during compilation. It uses
  274. those values to create a `Makefile' in each directory of the package.
  275. It may also create one or more `.h' files containing system-dependent
  276. definitions. Finally, it creates a shell script `config.status' that
  277. you can run in the future to recreate the current configuration, and a
  278. file `config.log' containing compiler output (useful mainly for
  279. debugging `configure').
  280. It can also use an optional file (typically called `config.cache'
  281. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  282. the results of its tests to speed up reconfiguring. (Caching is
  283. disabled by default to prevent problems with accidental use of stale
  284. cache files.)
  285. If you need to do unusual things to compile the package, please try
  286. to figure out how `configure' could check whether to do them, and mail
  287. diffs or instructions to the address given in the `README' so they can
  288. be considered for the next release. If you are using the cache, and at
  289. some point `config.cache' contains results you don't want to keep, you
  290. may remove or edit it.
  291. The file `configure.ac' (or `configure.in') is used to create
  292. `configure' by a program called `autoconf'. You only need
  293. `configure.ac' if you want to change it or regenerate `configure' using
  294. a newer version of `autoconf'.
  295. The simplest way to compile this package is:
  296. 1. `cd' to the directory containing the package's source code and type
  297. `./configure' to configure the package for your system. If you're
  298. using `csh' on an old version of System V, you might need to type
  299. `sh ./configure' instead to prevent `csh' from trying to execute
  300. `configure' itself.
  301. Running `configure' takes awhile. While running, it prints some
  302. messages telling which features it is checking for.
  303. 2. Type `make' to compile the package.
  304. 3. Optionally, type `make check' to run any self-tests that come with
  305. the package.
  306. 4. Type `make install' to install the programs and any data files and
  307. documentation.
  308. 5. You can remove the program binaries and object files from the
  309. source code directory by typing `make clean'. To also remove the
  310. files that `configure' created (so you can compile the package for
  311. a different kind of computer), type `make distclean'. There is
  312. also a `make maintainer-clean' target, but that is intended mainly
  313. for the package's developers. If you use it, you may have to get
  314. all sorts of other programs in order to regenerate files that came
  315. with the distribution.
  316. Compilers and Options
  317. =====================
  318. Some systems require unusual options for compilation or linking that
  319. the `configure' script does not know about. Run `./configure --help'
  320. for details on some of the pertinent environment variables.
  321. You can give `configure' initial values for configuration parameters
  322. by setting variables in the command line or in the environment. Here
  323. is an example:
  324. ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  325. *Note Defining Variables::, for more details.
  326. Compiling For Multiple Architectures
  327. ====================================
  328. You can compile the package for more than one kind of computer at the
  329. same time, by placing the object files for each architecture in their
  330. own directory. To do this, you must use a version of `make' that
  331. supports the `VPATH' variable, such as GNU `make'. `cd' to the
  332. directory where you want the object files and executables to go and run
  333. the `configure' script. `configure' automatically checks for the
  334. source code in the directory that `configure' is in and in `..'.
  335. If you have to use a `make' that does not support the `VPATH'
  336. variable, you have to compile the package for one architecture at a
  337. time in the source code directory. After you have installed the
  338. package for one architecture, use `make distclean' before reconfiguring
  339. for another architecture.
  340. Installation Names
  341. ==================
  342. By default, `make install' will install the package's files in
  343. `/usr/local/bin', `/usr/local/man', etc. You can specify an
  344. installation prefix other than `/usr/local' by giving `configure' the
  345. option `--prefix=PATH'.
  346. You can specify separate installation prefixes for
  347. architecture-specific files and architecture-independent files. If you
  348. give `configure' the option `--exec-prefix=PATH', the package will use
  349. PATH as the prefix for installing programs and libraries.
  350. Documentation and other data files will still use the regular prefix.
  351. In addition, if you use an unusual directory layout you can give
  352. options like `--bindir=PATH' to specify different values for particular
  353. kinds of files. Run `configure --help' for a list of the directories
  354. you can set and what kinds of files go in them.
  355. If the package supports it, you can cause programs to be installed
  356. with an extra prefix or suffix on their names by giving `configure' the
  357. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  358. Optional Features
  359. =================
  360. Some packages pay attention to `--enable-FEATURE' options to
  361. `configure', where FEATURE indicates an optional part of the package.
  362. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  363. is something like `gnu-as' or `x' (for the X Window System). The
  364. `README' should mention any `--enable-' and `--with-' options that the
  365. package recognizes.
  366. For packages that use the X Window System, `configure' can usually
  367. find the X include and library files automatically, but if it doesn't,
  368. you can use the `configure' options `--x-includes=DIR' and
  369. `--x-libraries=DIR' to specify their locations.
  370. Specifying the System Type
  371. ==========================
  372. There may be some features `configure' cannot figure out
  373. automatically, but needs to determine by the type of machine the package
  374. will run on. Usually, assuming the package is built to be run on the
  375. _same_ architectures, `configure' can figure that out, but if it prints
  376. a message saying it cannot guess the machine type, give it the
  377. `--build=TYPE' option. TYPE can either be a short name for the system
  378. type, such as `sun4', or a canonical name which has the form:
  379. CPU-COMPANY-SYSTEM
  380. where SYSTEM can have one of these forms:
  381. OS KERNEL-OS
  382. See the file `config.sub' for the possible values of each field. If
  383. `config.sub' isn't included in this package, then this package doesn't
  384. need to know the machine type.
  385. If you are _building_ compiler tools for cross-compiling, you should
  386. use the `--target=TYPE' option to select the type of system they will
  387. produce code for.
  388. If you want to _use_ a cross compiler, that generates code for a
  389. platform different from the build platform, you should specify the
  390. "host" platform (i.e., that on which the generated programs will
  391. eventually be run) with `--host=TYPE'.
  392. Sharing Defaults
  393. ================
  394. If you want to set default values for `configure' scripts to share,
  395. you can create a site shell script called `config.site' that gives
  396. default values for variables like `CC', `cache_file', and `prefix'.
  397. `configure' looks for `PREFIX/share/config.site' if it exists, then
  398. `PREFIX/etc/config.site' if it exists. Or, you can set the
  399. `CONFIG_SITE' environment variable to the location of the site script.
  400. A warning: not all `configure' scripts look for a site script.
  401. Defining Variables
  402. ==================
  403. Variables not defined in a site shell script can be set in the
  404. environment passed to `configure'. However, some packages may run
  405. configure again during the build, and the customized values of these
  406. variables may be lost. In order to avoid this problem, you should set
  407. them in the `configure' command line, using `VAR=value'. For example:
  408. ./configure CC=/usr/local2/bin/gcc
  409. will cause the specified gcc to be used as the C compiler (unless it is
  410. overridden in the site shell script).
  411. `configure' Invocation
  412. ======================
  413. `configure' recognizes the following options to control how it
  414. operates.
  415. `--help'
  416. `-h'
  417. Print a summary of the options to `configure', and exit.
  418. `--version'
  419. `-V'
  420. Print the version of Autoconf used to generate the `configure'
  421. script, and exit.
  422. `--cache-file=FILE'
  423. Enable the cache: use and save the results of the tests in FILE,
  424. traditionally `config.cache'. FILE defaults to `/dev/null' to
  425. disable caching.
  426. `--config-cache'
  427. `-C'
  428. Alias for `--cache-file=config.cache'.
  429. `--quiet'
  430. `--silent'
  431. `-q'
  432. Do not print messages saying which checks are being made. To
  433. suppress all normal output, redirect it to `/dev/null' (any error
  434. messages will still be shown).
  435. `--srcdir=DIR'
  436. Look for the package's source code in directory DIR. Usually
  437. `configure' can determine that directory automatically.
  438. `configure' also accepts some other, not widely useful, options. Run
  439. `configure --help' for more details.