diff options
-rw-r--r-- | yt/yt/library/program/program.cpp | 24 | ||||
-rw-r--r-- | yt/yt/library/program/program.h | 2 |
2 files changed, 0 insertions, 26 deletions
diff --git a/yt/yt/library/program/program.cpp b/yt/yt/library/program/program.cpp index 2dc58dc175..6b2e012afe 100644 --- a/yt/yt/library/program/program.cpp +++ b/yt/yt/library/program/program.cpp @@ -29,10 +29,6 @@ #include <util/system/thread.h> #include <util/system/sigset.h> -#include <util/string/subst.h> - -#include <thread> - #include <stdlib.h> #ifdef _unix_ @@ -46,11 +42,6 @@ #include <sys/prctl.h> #endif -#if defined(_linux_) && defined(CLANG_COVERAGE) -extern "C" int __llvm_profile_write_file(void); -extern "C" void __llvm_profile_set_filename(const char* name); -#endif - namespace NYT { using namespace NYson; @@ -96,8 +87,6 @@ TProgram::TProgram() .NoArgument() .StoreValue(&PrintBuild_, true); Opts_.SetFreeArgsNum(0); - - ConfigureCoverageOutput(); } TProgram::~TProgram() = default; @@ -276,19 +265,6 @@ void ConfigureUids() #endif } -void ConfigureCoverageOutput() -{ -#if defined(_linux_) && defined(CLANG_COVERAGE) - // YT tests use pid namespaces. We can't use process id as unique identifier for output file. - if (auto profileFile = getenv("LLVM_PROFILE_FILE")) { - TString fixedProfile{profileFile}; - SubstGlobal(fixedProfile, "%e", "ytserver-all"); - SubstGlobal(fixedProfile, "%p", ToString(TInstant::Now().NanoSeconds())); - __llvm_profile_set_filename(fixedProfile.c_str()); - } -#endif -} - void ConfigureIgnoreSigpipe() { #ifdef _unix_ diff --git a/yt/yt/library/program/program.h b/yt/yt/library/program/program.h index 7104326bda..e60d374574 100644 --- a/yt/yt/library/program/program.h +++ b/yt/yt/library/program/program.h @@ -126,8 +126,6 @@ NYson::TYsonString CheckYsonArgMapper(const TString& arg); //! Drop privileges and save them if running with suid-bit. void ConfigureUids(); -void ConfigureCoverageOutput(); - void ConfigureIgnoreSigpipe(); //! Intercepts standard crash signals (see signal_registry.h for full list) with a nice handler. |