Skip to content

Commit 4d75105

Browse files
committed
Fix util.h
1 parent 6787bce commit 4d75105

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extension/llm/runner/util.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace executorch {
1919
namespace extension {
2020
namespace llm {
2121

22-
void inline ET_EXPERIMENTAL safe_printf(const char* piece) {
22+
ET_EXPERIMENTAL void inline safe_printf(const char* piece) {
2323
// piece might be a raw byte token, and we only want to print printable chars
2424
// or whitespace because some of the other bytes can be various control codes,
2525
// backspace, etc.
@@ -41,7 +41,7 @@ void inline ET_EXPERIMENTAL safe_printf(const char* piece) {
4141
// ----------------------------------------------------------------------------
4242
// utilities: time
4343

44-
long inline time_in_ms() {
44+
ET_EXPERIMENTAL long inline time_in_ms() {
4545
// return time in milliseconds, for benchmarking the model speed
4646
struct timespec time;
4747
clock_gettime(CLOCK_REALTIME, &time);
@@ -55,7 +55,7 @@ long inline time_in_ms() {
5555
// RSS: Resident Set Size, the amount of memory currently in the RAM for this
5656
// process. These values are approximate, and are only used for logging
5757
// purposes.
58-
size_t inline get_rss_bytes() {
58+
ET_EXPERIMENTAL size_t inline get_rss_bytes() {
5959
#if defined(__linux__) || defined(__ANDROID__) || defined(__unix__)
6060
struct rusage r_usage;
6161
if (getrusage(RUSAGE_SELF, &r_usage) == 0) {

0 commit comments

Comments
 (0)