Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmadsen committed Oct 16, 2023
1 parent 73d5c72 commit 55b6d7c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions source/python/libpytimemory-trace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ tracer_function(py::object pframe, const char* swhat, py::object arg)

//
auto* frame = reinterpret_cast<frame_object_t*>(pframe.ptr());
auto _code = get_frame_code(frame);
auto _line = get_frame_lineno(frame);
auto _code = get_frame_code(frame);
auto _line = get_frame_lineno(frame);
auto& _file = _code->co_filename;
auto& _name = _code->co_name;

Expand Down
6 changes: 3 additions & 3 deletions source/tests/argparse_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
#include <thread>
#include <vector>

static int test_argc = 0;
static char** test_argv = nullptr;
static int test_argc = 0;
static char** test_argv = nullptr;
static int _margc = 0;
static char** _margv = nullptr;
static int _log_once = 0;
Expand Down Expand Up @@ -200,7 +200,7 @@ parse(argparse_t& parser, Args&&... args)
test_argc = sizeof...(Args) + 1;
test_argv = new char*[test_argc];
test_argv[0] = strdup(_arg0);
int i = 1;
int i = 1;
TIMEMORY_FOLD_EXPRESSION((test_argv[i] = strdup(std::forward<Args>(args)), ++i));

auto err = parse_function()(parser, test_argc, test_argv);
Expand Down
5 changes: 3 additions & 2 deletions source/tests/data_tracker_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ TEST_F(data_tracker_tests, convergence_test)
tim::trait::runtime_enabled<err_tracker_type_d>::set(true);

auto _run = [&err_diffs, &num_iters, nthreads](size_t i, auto lbl, size_t nitr,
size_t /*modulo*/) {
size_t /*modulo*/) {
details::get_rng().seed(1000 * i);
auto _name = TIMEMORY_JOIN('/', details::get_test_name(), lbl);

Expand Down Expand Up @@ -386,7 +386,8 @@ TEST_F(data_tracker_tests, convergence_test)
// {
// tim::auto_lock_t _lk{ tim::type_mutex<decltype(std::cout)>() };
// if(tim::settings::debug())
// std::cout << "\niteration " << i << "\n" << _tcout.str() << std::endl;
// std::cout << "\niteration " << i << "\n" << _tcout.str() <<
// std::endl;
// std::cout << "\niteration " << i << "\n\t" << _bundle
// << "\n\tnum_iter : " << num_iter << "\n\terror : " << err
// << "\n"
Expand Down
3 changes: 2 additions & 1 deletion source/tests/hybrid_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ TEST_F(hybrid_tests, hybrid)

auto page_size = tim::units::get_page_size();

// details::print_info(*l_page, page_size, tim::settings::memory_units(), clock_convert);
// details::print_info(*l_page, page_size, tim::settings::memory_units(),
// clock_convert);

EXPECT_NEAR(l_page->get(), page_size, 2.0 * page_size) << obj;
}
Expand Down
4 changes: 2 additions & 2 deletions source/tests/test_macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ as_string(const Tp&)
tim::settings::debug() = false; \
tim::settings::json_output() = true; \
puts("[SetupTestSuite] initializing dmp"); \
tim::dmp::initialize(test_argc, test_argv); \
tim::dmp::initialize(test_argc, test_argv); \
puts("[SetupTestSuite] initializing timemory"); \
tim::timemory_init(test_argc, test_argv); \
tim::timemory_init(test_argc, test_argv); \
puts("[SetupTestSuite] timemory initialized"); \
tim::settings::dart_output() = false; \
tim::settings::dart_count() = 1; \
Expand Down

0 comments on commit 55b6d7c

Please sign in to comment.