Skip to content

Commit 4ab6b65

Browse files
authored
add module prefix for PprofFormat (#39)
Motivation: I forgot to add a `ProfileRecorder` prefix to the `PprofFormat` module. Unfortunately, `PprofFormat` isn't super unique, so let's add the prefix Modifcation: - Add `ProfileRecorder` prefix making it `ProfileRecorderPprofFormat` Result: Fewer potential clashes with other packages
1 parent 7506f06 commit 4ab6b65

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

.licenseignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ Snippets/*
3535
Misc/*
3636
Misc/Resources/*
3737
Scripts/*
38-
Sources/PprofFormat/profile.pb.swift
38+
Sources/ProfileRecorderPprofFormat/profile.pb.swift
3939
.unacceptablelanguageignore

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let package = Package(
5050
"ProfileRecorder",
5151
"CProfileRecorderSwiftELF",
5252
"CProfileRecorderDarwin",
53-
"PprofFormat",
53+
"ProfileRecorderPprofFormat",
5454
"ProfileRecorderHelpers",
5555
.product(name: "NIO", package: "swift-nio"),
5656
.product(name: "NIOFoundationCompat", package: "swift-nio"),
@@ -94,7 +94,7 @@ let package = Package(
9494
]
9595
),
9696
.target(
97-
name: "PprofFormat",
97+
name: "ProfileRecorderPprofFormat",
9898
dependencies: [
9999
"ProfileRecorderHelpers",
100100
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
@@ -111,7 +111,7 @@ let package = Package(
111111
.product(name: "Logging", package: "swift-log"),
112112
"ProfileRecorder",
113113
"_ProfileRecorderSampleConversion",
114-
"PprofFormat",
114+
"ProfileRecorderPprofFormat",
115115
]
116116
),
117117
.target(

Protos/generate-protos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ set -eu
1818
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1919
protoc \
2020
--swift_opt=Visibility=Public \
21-
--swift_out="$here/../Sources/PprofFormat" \
21+
--swift_out="$here/../Sources/ProfileRecorderPprofFormat" \
2222
-I "$here" \
2323
profile.proto

Sources/ProfileRecorderSampleConversion/OutputFormatRendering/Pprof.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import NIO
16-
import PprofFormat
16+
import ProfileRecorderPprofFormat
1717
import SwiftProtobuf
1818

1919
public struct PprofOutputRenderer: ProfileRecorderSampleConversionOutputRenderer {

0 commit comments

Comments
 (0)