sapling/eden/fs/utils/SysctlUtil.h
Katie Mancini 32679fb9a1 log architecture on macOS to edenfs_events
Summary:
It's not possible to differentiate NFS m1 and intel users in edenfs_events
right now. We are currently rolling out to intel users and it would be good
to understand the real number of intel users on NFS vs fuse.

Let's log the cpu architecture so that we can differentiate them.

Reviewed By: mshroyer

Differential Revision: D39139996

fbshipit-source-id: 582804707a7816c41aa6c69594f7198d3ce5dfe1
2022-08-31 11:57:28 -07:00

15 lines
367 B
C++

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#include <string>
#ifdef __APPLE__
// Fetches the value of a sysctl by name.
// The result is assumed to be a string.
std::string getSysCtlByName(const char* name, size_t size);
#endif