Yash Tibrewal
aa11978541
Fix include guards for src/ and test/ directories ( #32167 )
...
* Fix include guards for src/ and test/ directories
* Sanity
* Update new files
2023-01-20 16:27:27 -08:00
Craig Tiller
67f364e23e
[cleanup] Eliminate usage of GRPC_ASSERT(false...); ( #31757 )
...
* crash function
* progress
* fix
* fix
* Automated change: Fix sanity tests
* fix
* fix
* fix
* fixes
* Automated change: Fix sanity tests
* fix
* Automated change: Fix sanity tests
* fix
* fix
* use cpp attr
* Automated change: Fix sanity tests
* fix
* fix
* fix
* fix
* fix
* fix
* add exclusion
* fix
* typo
* fix
* fmt
* Update tcp_socket_utils.cc
* Automated change: Fix sanity tests
* fix
* revert php changes
* Automated change: Fix sanity tests
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2023-01-11 08:50:32 -08:00
Yijie Ma
f99b8b5bc4
Convert c-style comments to C++-style comments ( #31923 )
...
* baseline
* fix clang-tidy
* manually revert these files
* manually fixup at eof
* revert 2 more files
* change check_deprecated_grpc++.py
* change end2end_defs.include template
* fix check_include_guards.py
* untrack tools/distrib/python/convert_cstyle_comments_to_cpp.py
not yet ready to be submitted
* fix
yapf check_include_guards.py
remove a space...
* fix version.cc.template
* fix version_info.h.template
2022-12-22 23:01:53 -08:00
Craig Tiller
20d1efc38a
[stats] Move core stats to C++ ( #30936 )
...
* begin c++
* Automated change: Fix sanity tests
* progress
* progress
* missing-files
* Automated change: Fix sanity tests
* moved-from-stats
* remove old benchmark cruft, get tests compiling
* iwyu
* Automated change: Fix sanity tests
* fix
* fix
* fixes
* fixes
* add needed constructor
* Automated change: Fix sanity tests
* iwyu
* fix
* fix?
* fix
* fix
* Remove ResetDefaultEventEngine
Now that it is a weak_ptr, there's no need to explicitly reset it. When
the tracked shared_ptr is deleted, the weak_ptr will fail to lock, and a
new default EventEngine will be created.
* forget existing engine with FactoryReset
* add visibility
* fix
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
Co-authored-by: AJ Heller <hork@google.com>
2022-10-09 21:22:08 -07:00
Craig Tiller
9c98d67d7a
[c++14] absl::make_unique --> std::make_unique ( #31159 )
...
* [c++14] absl::make_unique --> std::make_unique
* fix
* fix
2022-09-29 06:45:17 -07:00
Craig Tiller
c2ab8c99bb
Revert "Revert "[c++] Move environment functions to C++ ( #30937 )" ( #30986 )" ( #30988 )
...
This reverts commit 96264e07b8 .
2022-09-14 14:19:36 -07:00
Craig Tiller
96264e07b8
Revert "[c++] Move environment functions to C++ ( #30937 )" ( #30986 )
...
This reverts commit 74c0d6fe3f .
2022-09-14 11:53:55 -07:00
Craig Tiller
74c0d6fe3f
[c++] Move environment functions to C++ ( #30937 )
...
* [gprpp] Move env to C++
* move headers/impl
* Automated change: Fix sanity tests
* fix
* fix
* Automated change: Fix sanity tests
* Update http_proxy.cc
* fix
* fix
* rename
* fix merge
* fix
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
2022-09-14 10:17:15 -07:00
AJ Heller
785d6b656a
Add logging for invalid client PayloadConfig in QPS test ( #30261 )
...
* Add invalid PayloadConfig logging to QPS test
* flip conditions
2022-07-19 12:18:02 -07:00
Austin Schuh
d30404868f
ARM and -Wextra fixups ( #19141 )
...
* Make generated code compile with -Wunused-parameters
-Wunused-parameters is turned on by -Werror -Wextra. gRPC code
generation creates header files with unused parameters. So let's modify
the generator to not generate code which will make -Wunused-parameters
unhappy.
* Fix unsigned vs signed comparisons and 32 bit string formats
Fix unsigned vs signed comparison warnings.
For 64 bit numbers printed in gRPC, the string formats assume that you
are running on a 64 bit machine. Use inttypes.h to make it portable.
Also, use size_t format strings for the same reason.
* Fix unaligned memory access
cost_entry_ptr has no alignment guarentees that ubsan can find. So it
fails the test with an alignment problem. Use memcopy to read the data
from the pointer to fix this.
* Fix undefined behavior with memcpy and memcmp
Passing in a 0 length piece of data and a null pointer is undefined
behavior. If the length is 0, don't pass it in. This fixes ubsan
failures.
* Clang-format
* Automated change: Fix sanity tests
2021-09-27 04:54:05 -07:00
Craig Tiller
ea389c00c2
Adjust include order per style guide ( #27175 )
...
Introduce clang-format configuration to sort includes closer to our rules.
2021-09-08 12:14:44 -07:00
Esun Kim
2ff84ed8c2
C++ cast for void*
2020-11-30 17:29:15 -08:00
Esun Kim
ac080fd17a
Fix readability-inconsistent-declaration-parameter-name manually
2020-11-30 14:22:40 -08:00
Esun Kim
84df61b31a
Merge pull request #24453 from veblush/tidy-modernize-make-unique
...
[Clang-Tidy] Enable modernize-make-unique
2020-10-16 16:35:08 -07:00
Esun Kim
e7434d385e
Fix by tidy-modernize-use-override
2020-10-16 14:01:06 -07:00
Esun Kim
6ae8463500
Fix by modernize-make-unique
2020-10-16 13:30:56 -07:00
Esun Kim
a51fe3e675
Fix abseil-* clang-tidy errors
2020-10-16 09:39:41 -07:00
Esun Kim
c08f33c437
Fix clang-tidy errors
2020-10-15 16:07:25 -07:00
Esun Kim
165ee5007a
Replaced grpc::string with std::string
2020-06-29 17:56:36 -07:00
Vijay Pai
e35c869aaf
Remove unused-parameter warnings, round 2 (19 of 19)
2019-10-21 09:16:35 -07:00
Moiz Haidry
d3db9fee9c
Merge pull request #17461 from mhaidrygoog/callback_client_streaming_benchmark
...
Add support for Callback Client Streaming benchmarks
2019-01-03 20:38:54 -08:00
Moiz Haidry
7bb853ebdd
Addressed PR comments. Made Client::Thread public and removed use of void ptr to refer it. Avoided overloading of NextIssue TIme by renaming it NextRPCIssueTime
2018-12-21 22:40:38 -08:00
Alexander Polcyn
50eaf46718
Refactor benchmark initial channel wait for ready to be single threaded
2018-12-21 14:07:46 -08:00
Moiz Haidry
e6e1081499
Add support for Callback Client Streaming benchmarks
2018-12-13 09:40:37 -08:00
Vijay Pai
432b34bf74
Initialize value before creating slice
2018-11-07 12:33:19 -08:00
Moiz Haidry
b4d5c7cee4
Benchmark test for callback unary gRPC
...
Every thread intitiates multiple RPCs. The Callback of the unary RPC then issues a new RPC and this goes until the benchmark shuts down. For shutdown the main thread waits on a conditional variable. After shutdown the callbacks increment a rpcs done variable and once the the rpcs done equate the the total number of outstanding rpcs, the last callback performing the increment operation also issues a signal to wake up the main thread. The mainthread process to join the other threads and perform cleanup
2018-10-08 12:24:03 -07:00
Hope Casey-Allen
e360d82216
Clang tidy
2018-08-25 19:31:00 -07:00
Hope Casey-Allen
839a0520a2
Add an option to collect medians every epoch. Useful for gathering per second median latencies
2018-08-25 18:33:11 -07:00
Alexander Polcyn
a2160f547f
Wait a configurable amount of time for benchmark channels to become ready
2018-07-26 10:45:12 -07:00
Noah Eisen
373fc6dc40
Manual fixes to enable performance- clang tidy checks
2018-06-14 14:58:09 -04:00
kpayson64
7a20c962df
Break out qps services into seperate protos
2018-04-18 22:13:09 -07:00
Vijay Pai
c90a85649b
Change grpc++ references in names to grpcpp
2018-03-08 22:04:59 -08:00
kpayson64
1bf7207852
Merge pull request #13084 from kpayson64/cq_lambda
...
CompletionQueue DoThenAsyncNext
2017-10-25 10:28:02 -07:00
Ken Payson
42bd87e376
Adds gRPC Experimental CQ DoThenAsyncNext lambda API
2017-10-25 09:13:30 -07:00
Yuchen Zeng
ca31256597
Remove redundant WaitForConnected
2017-10-23 18:26:21 -07:00
Vijay Pai
088112fea1
Create inproc version of QPS test and add a few simple tests of this to standard testing suite.
2017-10-19 14:29:13 -07:00
Craig Tiller
c18ad11837
Wait until all clients connected before starting streams
2017-10-09 13:44:10 -07:00
Craig Tiller
f6cd77c48d
Stability fixes
2017-10-09 13:28:00 -07:00
Craig Tiller
2897235609
Expose stats into qps_driver
2017-08-31 15:52:57 -07:00
Vijay Pai
6defb325d9
Remove some pre-C++11-style workarounds
2017-08-29 08:44:54 -07:00
Vijay Pai
c38955501b
Move some internal includes to the right places
2017-08-24 10:16:40 -07:00
Guantao Liu
1932a50e50
Merge pull request #11787 from guantaol/qps_driver
...
Add a new metric and enable internal credential types in QPS Driver
2017-07-18 17:46:57 -07:00
Vijay Pai
0f95fa4909
Add idiomatic C++ API for grpc::Slice construction that doesn't
...
require using grpc_slice
2017-07-18 11:07:43 -07:00
Guantao Liu
abe3cf51f0
Add a new metric 'Queries/CPU-sec'.
...
Enable internal credential types.
2017-07-12 17:36:30 -07:00
Jan Tattermusch
7897ae9308
auto-fix most of licenses
2017-06-08 11:22:41 +02:00
Yuxuan Li
8698f2bbee
fix extern c location
2017-05-15 16:53:01 -07:00
Yuxuan Li
a7f7fcf94a
Merge branch 'master' into poll_stat
2017-05-08 11:35:00 -07:00
Yuxuan Li
87827e03aa
use lock instand of atomics, fix include position
2017-05-05 14:12:42 -07:00
Yuxuan Li
f8365cd87b
clean up, fix minor issue
2017-05-03 23:29:17 -07:00
Yuxuan Li
28efff3e1e
clang-format
2017-05-03 22:50:56 -07:00