Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SPIne CH_Communicatuin_Test CH_Communicatuin_Test2 MCP_SPIne ... more
Fork of mbed-dev-f303 by
api/mbed_stats.h@147:30b64687e01f, 2016-09-16 (annotated)
- Committer:
- <>
- Date:
- Fri Sep 16 16:24:25 2016 +0100
- Revision:
- 147:30b64687e01f
This updates the lib to the mbed lib v126
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| <> | 147:30b64687e01f | 1 | /* mbed Microcontroller Library |
| <> | 147:30b64687e01f | 2 | * Copyright (c) 2016-2016 ARM Limited |
| <> | 147:30b64687e01f | 3 | * |
| <> | 147:30b64687e01f | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| <> | 147:30b64687e01f | 5 | * you may not use this file except in compliance with the License. |
| <> | 147:30b64687e01f | 6 | * You may obtain a copy of the License at |
| <> | 147:30b64687e01f | 7 | * |
| <> | 147:30b64687e01f | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| <> | 147:30b64687e01f | 9 | * |
| <> | 147:30b64687e01f | 10 | * Unless required by applicable law or agreed to in writing, software |
| <> | 147:30b64687e01f | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| <> | 147:30b64687e01f | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| <> | 147:30b64687e01f | 13 | * See the License for the specific language governing permissions and |
| <> | 147:30b64687e01f | 14 | * limitations under the License. |
| <> | 147:30b64687e01f | 15 | */ |
| <> | 147:30b64687e01f | 16 | #ifndef MBED_STATS_H |
| <> | 147:30b64687e01f | 17 | #define MBED_STATS_H |
| <> | 147:30b64687e01f | 18 | |
| <> | 147:30b64687e01f | 19 | #ifdef __cplusplus |
| <> | 147:30b64687e01f | 20 | extern "C" { |
| <> | 147:30b64687e01f | 21 | #endif |
| <> | 147:30b64687e01f | 22 | |
| <> | 147:30b64687e01f | 23 | typedef struct { |
| <> | 147:30b64687e01f | 24 | uint32_t current_size; /**< Bytes allocated currently. */ |
| <> | 147:30b64687e01f | 25 | uint32_t max_size; /**< Max bytes allocated at a given time. */ |
| <> | 147:30b64687e01f | 26 | uint32_t total_size; /**< Cumulative sum of bytes ever allocated. */ |
| <> | 147:30b64687e01f | 27 | uint32_t alloc_cnt; /**< Current number of allocations. */ |
| <> | 147:30b64687e01f | 28 | uint32_t alloc_fail_cnt; /**< Number of failed allocations. */ |
| <> | 147:30b64687e01f | 29 | } mbed_stats_heap_t; |
| <> | 147:30b64687e01f | 30 | |
| <> | 147:30b64687e01f | 31 | /** |
| <> | 147:30b64687e01f | 32 | * Fill the passed in structure with heap stats. |
| <> | 147:30b64687e01f | 33 | */ |
| <> | 147:30b64687e01f | 34 | void mbed_stats_heap_get(mbed_stats_heap_t *stats); |
| <> | 147:30b64687e01f | 35 | |
| <> | 147:30b64687e01f | 36 | #ifdef __cplusplus |
| <> | 147:30b64687e01f | 37 | } |
| <> | 147:30b64687e01f | 38 | #endif |
| <> | 147:30b64687e01f | 39 | |
| <> | 147:30b64687e01f | 40 | #endif |
