Commit Graph

165 Commits

Author SHA1 Message Date
Johannes Tax 7b4dd48b87
Add a type-erased shared pointer (#47) 2020-03-10 09:32:27 -07:00
Johannes Tax 97ea4d7dbe
A little CMake cleanup (#48) 2020-03-09 19:46:53 -07:00
Ryan a76df41a68
Add missing cmake test directory (#40) 2020-02-26 18:14:09 -08:00
easy ae8affcb8b
Add TraceFlags. (#39) 2020-02-26 12:27:11 +11:00
Ryan 4dd7a6b520
Add plugin support (#36)
* Add code for dynamic loading

* Add a mock hook

* Fix CopyErrorMessage

* Set up loading example

* Add plugin example

* Add plugin example

* Make a noisy plugin

* Remove mock from sdk

* Add ci for testing plugin

* Reformat

* Remove noexcept from alias

* Add windows stub

* Add missing includes

* Document

* Reorganize

* Fix formatting

* Setup plugin test for windows

* Fix typo

* Fix windows script

* Fix windows script

* Fix typo

* Fix windows path

* Fill out windows testing

* Fix windows script

* Fix windows script

* Fix windows script

* Fix windows script

* Fix windows script

* Fill in windows loading code

* Use std::string for error message

* Fix example

* Use string for error_message

* Fix namespace error

* Add windows error handling

* Fix windows preprocessor error

* Fix signature

* Add tests for plugins

* Fix formatting

* Refactor plugin test

* Drop unused private section

* Update for master
2020-02-25 12:02:08 -08:00
easy 573696f3fd
Run benchmarks on CI. (#34) 2020-02-03 15:11:55 +11:00
easy 1987e762b1
Add SpanId benchmark. (#33) 2020-01-29 16:33:05 +11:00
Ryan 9df8eb62a5
Add a Timestamp type (#29)
* Add timestamp

* Reword

* Reword

* Fix build for gcc48

* Fix cmake tests

* Update timestamp storage

* Reformat

* Split timestamp into a system and steady type
2020-01-27 20:07:51 -08:00
easy d09ef1c3d6
Add TraceId class. (#31) 2020-01-24 15:25:24 +11:00
easy 5241561171
Add SpanId class. (#10) 2020-01-16 14:11:09 +11:00
Ryan 83b9b9ef97
Add a minimal Tracer and Span API (#25)
* Add a unique_ptr

* Fill out more unique_ptr functionality

* Add missing assignment

* Fill out unique_ptr

* Add unique_ptr tests

* Add equality comparison

* Add documentation

* Add minimal Tracer interface

* Update cmake

* Add tests to cmake

* Fix unused variable

* Fix comments

* Remove unused include

* Fix build for gcc48

* Fix test prefix
2020-01-15 13:42:28 -08:00
easy 1dc9e2fa64
Make nostd::string_view work with -fno-exceptions. (#22) 2020-01-08 11:12:59 +11:00
Ryan c85b20b46d
Add back port of std::span (#21)
* Start filling out span backport

* Fix assertion

* Add a span test.

* Fix constructors

* Fill out span tests

* Add test coverage for pointer-count construction

* s/ASSERT_DEATH/EXPECT_DEATH/

* Add bracket operator test

* Add test coverage for other span construction.

* Add test coverage for array construction

* Add test for range construction

* Fix typo.

* Add assignment test

* Add iteration test

* Add data/size functions

* Add array overloads

* Support implicit construction from general containers

* Reformat

* Fix typo

* Fix typo

* Fix enable_if condition
2020-01-06 20:30:47 -08:00
Ryan b411cde758
Add a backport of std::string_view (#13)
* Ignore bazel files.

* Add a string_view backport.

* Add test cases for string_view.

* Update commenting.

* Add additional test assertion.

* Add substr method.

* Remove separate catch2 target.

* Add cmake build.

* Convert to gtest.

* Add gtests to cmake build.

* Remove catch tests.

* Run clang-format.

* Add missing link library.

* Add pthreads

* Reformat.
2019-12-17 12:20:22 -08:00
Reiley Yang 976bc27116
Initial folder layout (#8) 2019-10-24 19:34:33 -07:00