-
Notifications
You must be signed in to change notification settings - Fork 5.5k
refactor(native): Remove folly::StringPiece in Counters.h #26515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
refactor(native): Remove folly::StringPiece in Counters.h #26515
Conversation
Reviewer's GuideReplaced folly::StringPiece with std::string_view in Counters.h by swapping the include directive and updating all counter constant declarations accordingly. Class diagram for updated counter constant types in Counters.hclassDiagram
class facebook_presto_Counters {
<<namespace>>
+void registerPrestoMetrics()
+constexpr std::string_view kCounterDriverCPUExecutorQueueSize
+constexpr std::string_view kCounterDriverCPUExecutorLatencyMs
+constexpr std::string_view kCounterSpillerExecutorQueueSize
+constexpr std::string_view kCounterSpillerExecutorLatencyMs
+constexpr std::string_view kCounterHTTPExecutorLatencyMs
+constexpr std::string_view kCounterNumHTTPRequest
+constexpr std::string_view kCounterNumHTTPRequestError
+constexpr std::string_view kCounterHTTPRequestLatencyMs
+constexpr std::string_view kCounterHttpClientNumConnectionsCreated
+constexpr std::string_view kCounterHTTPClientTransactionCreateDelay
+constexpr std::string_view kCounterExchangeSourcePeakQueuedBytes
+constexpr std::string_view kCounterExchangeRequestDuration
+constexpr std::string_view kCounterExchangeRequestNumTries
+constexpr std::string_view kCounterExchangeRequestPageSize
+constexpr std::string_view kCounterExchangeGetDataSizeDuration
+constexpr std::string_view kCounterExchangeGetDataSizeNumTries
+constexpr std::string_view kCounterNumQueryContexts
+constexpr std::string_view kCounterMemoryManagerTotalBytes
+constexpr std::string_view kCounterNumTasks
+constexpr std::string_view kCounterNumTasksBytesProcessed
+constexpr std::string_view kCounterNumTasksRunning
+constexpr std::string_view kCounterNumTasksFinished
+constexpr std::string_view kCounterNumTasksCancelled
+constexpr std::string_view kCounterNumTasksAborted
+constexpr std::string_view kCounterNumTasksFailed
+constexpr std::string_view kCounterNumTasksPlanned
+constexpr std::string_view kCounterNumTasksQueued
+constexpr std::string_view kCounterNumZombieVeloxTasks
+constexpr std::string_view kCounterNumZombiePrestoTasks
+constexpr std::string_view kCounterNumTasksWithStuckOperator
+constexpr std::string_view kCounterNumCancelledTasksByStuckDriver
+constexpr std::string_view kCounterNumTasksDeadlock
+constexpr std::string_view kCounterNumTaskManagerLockTimeOut
+constexpr std::string_view kCounterNumQueuedDrivers
+constexpr std::string_view kCounterNumOnThreadDrivers
+constexpr std::string_view kCounterNumSuspendedDrivers
+constexpr std::string_view kCounterNumBlockedWaitForConsumerDrivers
+constexpr std::string_view kCounterNumBlockedWaitForSplitDrivers
+constexpr std::string_view kCounterNumBlockedWaitForProducerDrivers
+constexpr std::string_view kCounterNumBlockedWaitForJoinBuildDrivers
+constexpr std::string_view kCounterNumBlockedWaitForJoinProbeDrivers
+constexpr std::string_view kCounterNumBlockedWaitForMergeJoinRightSideDrivers
+constexpr std::string_view kCounterNumBlockedWaitForMemoryDrivers
+constexpr std::string_view kCounterNumBlockedWaitForConnectorDrivers
+constexpr std::string_view kCounterNumBlockedYieldDrivers
+constexpr std::string_view kCounterNumStuckDrivers
+constexpr std::string_view kCounterOverloadedMem
+constexpr std::string_view kCounterOverloadedCpu
+constexpr std::string_view kCounterOverloaded
+constexpr std::string_view kCounterTaskPlannedTimeMs
+constexpr std::string_view kCounterTotalPartitionedOutputBuffer
+constexpr std::string_view kCounterPartitionedOutputBufferGetDataLatencyMs
+constexpr std::string_view kCounterOsUserCpuTimeMicros
+constexpr std::string_view kCounterOsSystemCpuTimeMicros
+constexpr std::string_view kCounterOsNumSoftPageFaults
+constexpr std::string_view kCounterOsNumHardPageFaults
+constexpr std::string_view kCounterOsNumVoluntaryContextSwitches
+constexpr std::string_view kCounterOsNumForcedContextSwitches
+constexpr std::string_view kCounterExchangeIoEvbViolation
+constexpr std::string_view kCounterHttpServerIoEvbViolation
+constexpr std::string_view kCounterMemoryPushbackCount
+constexpr std::string_view kCounterMemoryPushbackLatencyMs
+constexpr std::string_view kCounterMemoryPushbackReductionBytes
+constexpr std::string_view kCounterMemoryPushbackExpectedReductionBytes
}
Class diagram for type change from folly::StringPiece to std::string_viewclassDiagram
class folly_StringPiece {
<<removed usage>>
}
class std_string_view {
<<added usage>>
}
facebook_presto_Counters ..> std_string_view : uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@amitkdutta Could you help review this PR? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Velox has already removed folly::StringPiece in its Counters.h, this
should be followed up in presto_cpp to reduce inconsistencies.
X-link: facebookincubator/velox#15266