FoxiGram/TMessagesProj/jni/voip/webrtc/base/android/reached_code_profiler.h
instant992 8e79f2ee9c FoxiGram: Telegram client with built-in Xray VLESS proxy
Based on Nekogram. Key additions:
- Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app)
- Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so
- Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI
- Auto-restore proxy on restart, rebind to active network (LTE/WiFi)
- Server credentials externalized to git-ignored XrayServers.java (+ template)
- libxray Go source included; compiled .so, keystore, google-services.json ignored
2026-06-08 16:41:07 +04:00

34 lines
1.3 KiB
C++

// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_ANDROID_REACHED_CODE_PROFILER_H_
#define BASE_ANDROID_REACHED_CODE_PROFILER_H_
#include "base/android/library_loader/library_loader_hooks.h"
#include "base/base_export.h"
namespace base {
namespace android {
// Initializes and starts the reached code profiler for |library_process_type|.
// Reached symbols are not recorded before calling this function, so it has to
// be called as early in startup as possible. This has to be called before the
// process creates any thread.
// TODO(crbug.com/916263): Currently, the reached code profiler must be
// initialized before the tracing profiler. If we want to start it at later
// point, we need to check that the tracing profiler isn't initialized first.
BASE_EXPORT void InitReachedCodeProfilerAtStartup(
LibraryProcessType library_process_type);
// Returns whether the reached code profiler is enabled.
BASE_EXPORT bool IsReachedCodeProfilerEnabled();
// Returns whether the reached code profiler can be possibly enabled for the
// current build configuration.
BASE_EXPORT bool IsReachedCodeProfilerSupported();
} // namespace android
} // namespace base
#endif // BASE_ANDROID_REACHED_CODE_PROFILER_H_