mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
32679fb9a1
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
15 lines
367 B
C++
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
|