Skip to content

Commit 7c56d7d

Browse files
committed
Add isOptimizedForSpeed
1 parent 2a5152c commit 7c56d7d

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
description: "Retrieves a flag indicating whether the function is optimized for speed."
3+
title: "IDiaSymbol::get_isOptimizedForSpeed"
4+
ms.date: "07/26/2024"
5+
ms.topic: "reference"
6+
dev_langs:
7+
- "C++"
8+
author: "mikejo5000"
9+
ms.author: "mikejo"
10+
manager: mijacobs
11+
ms.subservice: debug-diagnostics
12+
---
13+
# IDiaSymbol::get_isOptimizedForSpeed
14+
15+
Retrieves a flag indicating whether the function is optimized for speed.
16+
17+
## Syntax
18+
19+
```C++
20+
HRESULT get_isOptimizedForSpeed(
21+
BOOL* pRetVal);
22+
```
23+
24+
#### Parameters
25+
`pRetVal`
26+
27+
[out] A pointer to a `BOOL` that specifies whether the function is optimized for speed. `TRUE` would indicate that the function was compiled with `/Ot` telling the compiler to favor fast code (speed).
28+
29+
## Return Value
30+
31+
If successful, returns `S_OK`; otherwise, returns `S_FALSE` or an error code.
32+
33+
## See also
34+
35+
- [`IDiaSymbol`](../../debugger/debug-interface-access/idiasymbol.md)
36+
- [`/Os`, `/Ot` (Favor Small Code, Favor Fast Code)](/cpp/build/reference/os-ot-favor-small-code-favor-fast-code)

docs/debugger/debug-interface-access/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,8 @@
11261126
href: idiasymbol-get-isnaked.md
11271127
- name: IDiaSymbol::get_isOptimizedAway
11281128
href: idiasymbol-get-isoptimizedaway.md
1129+
- name: IDiaSymbol::get_isOptimizedForSpeed
1130+
href: idiasymbol-get-isoptimizedforspeed.md
11291131
- name: IDiaSymbol::get_isPGO
11301132
href: idiasymbol-get-ispgo.md
11311133
- name: IDiaSymbol::get_isPointerBasedOnSymbolValue

0 commit comments

Comments
 (0)