mirror of
https://github.com/ossrs/srs.git
synced 2025-04-19 09:42:17 +03:00
update copyright to 2025 --------- Co-authored-by: john <hondaxiao@tencent.com> Co-authored-by: winlin <winlinvip@gmail.com>
21 lines
322 B
Go
21 lines
322 B
Go
// Copyright (c) 2025 Winlin
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
package main
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
|
|
"srs-proxy/logger"
|
|
)
|
|
|
|
func handleGoPprof(ctx context.Context) {
|
|
if addr := envGoPprof(); addr != "" {
|
|
go func() {
|
|
logger.Df(ctx, "Start Go pprof at %v", addr)
|
|
http.ListenAndServe(addr, nil)
|
|
}()
|
|
}
|
|
}
|