Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 8d2b596b5e70f554d9c2fb3e277cf8b485509cc3 |
|---|---|
| Date: | 2012-08-31 17:28:03 |
| User: | drh |
| Comment: | Use "&" instead of raw "&" inside the malloc.html document. |
Tags And Properties
- branch=trunk inherited from [b2e03e19ab]
- sym-trunk inherited from [b2e03e19ab]
Changes
Changes to pages/malloc.in
626 <p>The "onoff" parameter is true to enable the tracking of memory 626 <p>The "onoff" parameter is true to enable the tracking of memory 627 statistics and false to disable statistics tracking.</p> 627 statistics and false to disable statistics tracking.</p> 628 628 629 <p>Assuming statistics are enabled, the following routine can be used 629 <p>Assuming statistics are enabled, the following routine can be used 630 to access them:</p> 630 to access them:</p> 631 631 632 <blockquote><pre> 632 <blockquote><pre> 633 [sqlite3_status]([SQLITE_STATUS_MEMORY_USED|verb], ¤t, &highwater, resetfl | 633 [sqlite3_status]([SQLITE_STATUS_MEMORY_USED|verb], &current, &highwater, 634 </pre></blockquote> 634 </pre></blockquote> 635 635 636 <p>The "verb" argument determines what statistic is accessed. 636 <p>The "verb" argument determines what statistic is accessed. 637 There are [SQLITE_STATUS_MEMORY_USED | various verbs] defined. The 637 There are [SQLITE_STATUS_MEMORY_USED | various verbs] defined. The 638 list is expected to grow as the [sqlite3_status()] interface matures. 638 list is expected to grow as the [sqlite3_status()] interface matures. 639 The current value the selected parameter is written into integer 639 The current value the selected parameter is written into integer 640 "current" and the highest historical value 640 "current" and the highest historical value ................................................................................................................................................................................ 642 the high-water mark is reset down to the current value after the call 642 the high-water mark is reset down to the current value after the call 643 returns.</p> 643 returns.</p> 644 644 645 <p>A different interface is used to find statistics associated with a 645 <p>A different interface is used to find statistics associated with a 646 single [database connection]:</p> 646 single [database connection]:</p> 647 647 648 <blockquote><pre> 648 <blockquote><pre> 649 [sqlite3_db_status](db, [SQLITE_DBSTATUS_LOOKASIDE_USED|verb], ¤t, &highwa | 649 [sqlite3_db_status](db, [SQLITE_DBSTATUS_LOOKASIDE_USED|verb], &current, &am 650 </pre></blockquote> 650 </pre></blockquote> 651 651 652 <p>This interface is similar except that it takes a pointer to 652 <p>This interface is similar except that it takes a pointer to 653 a [database connection] as its first argument and returns statistics about 653 a [database connection] as its first argument and returns statistics about 654 that one object rather than about the entire SQLite library. 654 that one object rather than about the entire SQLite library. 655 The [sqlite3_db_status()] interface currently only recognizes a 655 The [sqlite3_db_status()] interface currently only recognizes a 656 single verb [SQLITE_DBSTATUS_LOOKASIDE_USED], though additional verbs 656 single verb [SQLITE_DBSTATUS_LOOKASIDE_USED], though additional verbs